CommandAPI icon indicating copy to clipboard operation
CommandAPI copied to clipboard

Document the interactions of permissions over command bases

Open JorelAli opened this issue 5 years ago • 0 comments

new CommandAPICommand("hello")
  .executes(...)
  .register()

new CommandAPICommand("hello")
  .withPermission(...)
  .executes(...)
  .register()

Because these commands have the same name, the permission from the second one doesn't carry over. The fix is to apply the permission to the first argument. This should be documented!

JorelAli avatar Nov 30 '20 22:11 JorelAli