Class PermissionsSetupEvent


  • public final class PermissionsSetupEvent
    extends java.lang.Object
    Called when a PermissionSubject's permissions are being setup.

    This event is only called once per subject, on initialisation.

    • Method Detail

      • setProvider

        public void setProvider​(@Nullable PermissionProvider provider)
        Sets the PermissionFunction that should be used for the subject.

        Specifying null will reset the provider to the default instance given when the event was posted.

        Parameters:
        provider - the provider
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object