Class GSAuthBanEvent

java.lang.Object
org.bukkit.event.Event
com.gamersafer.minecraft.auth.paper.event.GSAuthEvent
com.gamersafer.minecraft.auth.paper.event.GSAuthBanEvent

public class GSAuthBanEvent extends GSAuthEvent
Fired when a user is (un)banned
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    GSAuthBanEvent(org.bukkit.entity.Player player, UUID uuid, org.bukkit.command.CommandSender banner, boolean nowBanned)
    Creates a new GSAuthBanEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.command.CommandSender
    The CommandSender (un)banning the player.
    static org.bukkit.event.HandlerList
    Static getter for the handler list
    org.bukkit.event.HandlerList
     
    boolean
    Return whether the player is now banned

    Methods inherited from class com.gamersafer.minecraft.auth.paper.event.GSAuthEvent

    getPlayer, getUuid

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GSAuthBanEvent

      public GSAuthBanEvent(org.bukkit.entity.Player player, UUID uuid, org.bukkit.command.CommandSender banner, boolean nowBanned)
      Creates a new GSAuthBanEvent
      Parameters:
      player - the (un)banned player
      uuid - the UUID of the (un)banned player
      banner - the sender issuing the (un)ban
      nowBanned - whether the player is now banned
  • Method Details

    • getBanner

      public org.bukkit.command.CommandSender getBanner()
      The CommandSender (un)banning the player.
      Returns:
      the CommandSender performing the action
    • isNowBanned

      public boolean isNowBanned()
      Return whether the player is now banned
      Returns:
      whether the player is now banned
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Static getter for the handler list
      Returns:
      the handler list