Class MVCommandPermissions
java.lang.Object
org.mvplugins.multiverse.core.command.MVCommandPermissions
Maps permission checking to custom logic for commands, to allow more complex permission checking.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerPermissionChecker
(String id, Predicate<co.aikar.commands.CommandIssuer> checker) Registers a custom permission checker callback.
-
Method Details
-
registerPermissionChecker
public void registerPermissionChecker(String id, Predicate<co.aikar.commands.CommandIssuer> checker) Registers a custom permission checker callback. Use `@id-name` inCommandPermission
decorator to use the callback instead of the default permission string checking.- Parameters:
id
- The permission idchecker
- The permission checker callback
-