PlayerInfo
PlayerInfo copied to clipboard
Wrong usage of return values for onCommand
return-ing false in onCommand should only be used if args are missing or something else where displaying the command usage would help the command executor to find out what he did wrong. But you're also returning false for player not found and permission problems.
Before I'm returning false in the perms and player I give them an error. Also with the args
But because you are returning false the player gets another useless error
When I type command playerinfo, error applear...
@XuPaperCup What is the error?
It just say to ID and debug but now it ok