definehome
Beben107700 opened this issue ยท 1 comments
Hey,
when you do /definehome, you set X, Y and Z into the config folder, so if i do /home, ill go to that location, but if another player does /home, he well also go to that location,
when i'll be back from holidays, ill try with you to create a configfile for the home's (homelist.yml), and we will load the homes with the playername: ex:
Beben107700:
X: 100
Y: 504
Z:50
jflory7:
X: 238
Y: 694
Z: 323
,...
we can do this by using
String name = sender.getname()
[configname].set(string name+".X", valueofX)
Hey Beben,
Yeah, I knew that when I was coding it, and at the time, I did not know how to create a data file using player-defined data. When you return, we can work on coding it so that we can have the player-defined data file. It definitely seems like you know about how to do this, so this will help development speed increase greatly!