-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong usage of return values for onCommand #3
Comments
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 |
Closed
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: