Class GSAuthBanEvent

java.lang.Object
com.gamersafer.minecraft.auth.velocity.event.GSAuthEvent
com.gamersafer.minecraft.auth.velocity.event.GSAuthBanEvent

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

    Constructors
    Constructor
    Description
    GSAuthBanEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource banner, boolean nowBanned)
    Creates a new GSAuthBanEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    com.velocitypowered.api.command.CommandSource
    The CommandSource (un)banning the player.
    boolean
    Return whether the player is now banned

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

    getPlayer, getUuid

    Methods inherited from class java.lang.Object

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

    • GSAuthBanEvent

      public GSAuthBanEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource 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 com.velocitypowered.api.command.CommandSource getBanner()
      The CommandSource (un)banning the player.
      Returns:
      the CommandSource performing the action
    • isNowBanned

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