Class PermissionCheckEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.PermissionCheckEvent

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

    • PermissionCheckEvent

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

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object