Interface PermissionRegistry
- All Superinterfaces:
Registry
Registers the plugin's permissions with the platform, so permission plugins can offer them
for completion and apply their defaults.
-
Method Summary
Modifier and TypeMethodDescriptionvoidregister(String name, Permission.Type type) Registers one permission.default voidregister(PermissionSetting permissionSetting) Registers a permission from its config entry, ignoring a missing one.
-
Method Details
-
register
Registers one permission.- Parameters:
name- the permission nodetype- who holds it by default
-
register
Registers a permission from its config entry, ignoring a missing one.- Parameters:
permissionSetting- the config entry, may be null
-