Class PermissionEvents

java.lang.Object
net.fabricmc.fabric.api.permission.v1.PermissionEvents

public final class PermissionEvents extends Object
These events used for handling permission resolution within PermissionContext system. Implemented callbacks for these event should be thread safe, as permission methods can be called from any active thread. Additionally, the execution should be reasonably fast for non-player and online player cases. Offline player checks are allowed to be slower.

When implementing a permission handler, only ON_REQUEST needs to be implemented.

To check for permissions, you should use dedicated methods from PermissionContextOwner interface and it's implementations over invoking this event.