You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An authorizer checks whether or not an actor has permission to call a certain command.
Registering
To register an authorizer, you first need to construct a ParametricBuilder. The setAuthorizer() method simply takes one parameter: your authorizer implementation.
builder.setAuthorizer(newActorAuthorizer());
Implementing an authorizer
The Authorizer interface only requires you to implement one method; the testPermission() method. The method has two parameters: the namespace of the command and the permission.
A simple authorizer for e.g. Bukkit might look like this: