Interface PermissionRegistry

All Superinterfaces:
Registry

public interface PermissionRegistry extends Registry
Registers the plugin's permissions with the platform, so permission plugins can offer them for completion and apply their defaults.
  • Method Details

    • register

      void register(String name, Permission.Type type)
      Registers one permission.
      Parameters:
      name - the permission node
      type - who holds it by default
    • register

      default void register(PermissionSetting permissionSetting)
      Registers a permission from its config entry, ignoring a missing one.
      Parameters:
      permissionSetting - the config entry, may be null