hypixel-discord-chat-bridge
hypixel-discord-chat-bridge copied to clipboard
Added the Weight Command
Just added a weight command.
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 :/