Player State
Closed this issue · 2 comments
AdamJNew commented
Is there a way to check player health in this package?
AdamJNew commented
if (typeof data["player"] !== "undefined") { this.emit("player", data["player"]); this.emit("playerHealth", data["player"]["state"]["health"]); this.emit("playerName", data["player"]["name"]); }
Just need to add this into index.js of your package
ShaunLWM commented
Instead of nitpicking every single information, you can just listen for the player
event and act accordingly 😊