You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking through the code, I found a snippet of code in CommandParameter.java that suggests it's possible to have a command with multiple permissions, i.e. the player can can have any of the permissions to execute the command, but using @CommandPermission("plugin.command.self,plugin.command.others") doesn't seem to be working.
Looking at CommandManager.java, it would seem that it's set to require the user to have all the permissions specified.
I don't know if this is a bug or intended behaviour, seeing as BaseCommand.java has a method for checking if the command has any permission, and the RootCommand has the same.
If it's indented, I'd suggest replacing the comma with the pipe (|), and making the comma for any permission, or the other way around.
The text was updated successfully, but these errors were encountered:
Looking through the code, I found a snippet of code in CommandParameter.java that suggests it's possible to have a command with multiple permissions, i.e. the player can can have any of the permissions to execute the command, but using @CommandPermission("plugin.command.self,plugin.command.others") doesn't seem to be working.
Looking at CommandManager.java, it would seem that it's set to require the user to have all the permissions specified.
I don't know if this is a bug or intended behaviour, seeing as BaseCommand.java has a method for checking if the command has any permission, and the RootCommand has the same.
If it's indented, I'd suggest replacing the comma with the pipe (|), and making the comma for any permission, or the other way around.
Vouch, I was surprised to see this wasn't already a feature.
Looking through the code, I found a snippet of code in CommandParameter.java that suggests it's possible to have a command with multiple permissions, i.e. the player can can have any of the permissions to execute the command, but using
@CommandPermission("plugin.command.self,plugin.command.others")
doesn't seem to be working.Looking at CommandManager.java, it would seem that it's set to require the user to have all the permissions specified.
I don't know if this is a bug or intended behaviour, seeing as BaseCommand.java has a method for checking if the command has any permission, and the RootCommand has the same.
If it's indented, I'd suggest replacing the comma with the pipe (
|
), and making the comma for any permission, or the other way around.The text was updated successfully, but these errors were encountered: