Open KlaasNiphaas opened 3 years ago
A few suggestions:
- In order to make adding new commands easier to add, it may be worth putting all api related methods inside their own class and adding it as a property on either the
App
orMinecraft
objects, so to get the data you could just add the lineconst playerData = this.minecraft.apiHandler.getPlayerData(<ign>)
or something similar.
I don't fully understand this code (with all the this. and classes) but i'll try.
A few suggestions:
- In order to make adding new commands easier to add, it may be worth putting all api related methods inside their own class and adding it as a property on either the
App
orMinecraft
objects, so to get the data you could just add the lineconst playerData = this.minecraft.apiHandler.getPlayerData(<ign>)
or something similar.I don't fully understand this code (with all the this. and classes) but i'll try.
I tried for quite some time but i can't make it work :/
Just added a weight command.