Class GSBansBanEvent

java.lang.Object
com.gamersafer.minecraft.bans.velocity.event.GSBansEvent
com.gamersafer.minecraft.bans.velocity.event.GSBansBanEvent

public class GSBansBanEvent extends GSBansEvent
Fired when a user is (un)banned
  • Constructor Summary

    Constructors
    Constructor
    Description
    GSBansBanEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource banner, boolean nowBanned)
    Creates a new GSBansBanEvent
  • 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.bans.velocity.event.GSBansEvent

    getPlayer, getUuid

    Methods inherited from class java.lang.Object

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

    • GSBansBanEvent

      public GSBansBanEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource banner, boolean nowBanned)
      Creates a new GSBansBanEvent
      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