Class PermissionCheckEvent

  • public class PermissionCheckEvent
    extends Event
    Called when the permission of a CommandSender is checked.
    • Constructor Detail

      • PermissionCheckEvent

        public PermissionCheckEvent​(CommandSender sender,
                                    String permission,
                                    boolean hasPermission)
    • Method Detail

      • hasPermission

        public boolean hasPermission()
      • getSender

        public CommandSender getSender()
        The command sender being checked for a permission.
      • getPermission

        public String getPermission()
        The permission to check.
      • setHasPermission

        public void setHasPermission​(boolean hasPermission)
        The outcome of this permission check.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        hashCode in class Object