Class MVCommandPermissions

java.lang.Object
org.mvplugins.multiverse.core.command.MVCommandPermissions

@Service public class MVCommandPermissions extends Object
Maps permission checking to custom logic for commands, to allow more complex permission checking.
  • Method Details

    • registerPermissionChecker

      public void registerPermissionChecker(String id, Predicate<co.aikar.commands.CommandIssuer> checker)
      Registers a custom permission checker callback. Use `@id-name` in CommandPermission decorator to use the callback instead of the default permission string checking.
      Parameters:
      id - The permission id
      checker - The permission checker callback