Class GSAuthBanEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
com.gamersafer.minecraft.auth.bungeecord.event.GSAuthEvent
com.gamersafer.minecraft.auth.bungeecord.event.GSAuthBanEvent

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

    Constructors
    Constructor
    Description
    GSAuthBanEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, UUID uuid, net.md_5.bungee.api.CommandSender banner, boolean nowBanned)
    Creates a new GSAuthBanEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    net.md_5.bungee.api.CommandSender
    The CommandSender (un)banning the player.
    boolean
    Return whether the player is now banned

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

    getPlayer, getUuid

    Methods inherited from class net.md_5.bungee.api.plugin.Event

    postCall

    Methods inherited from class java.lang.Object

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

    • GSAuthBanEvent

      public GSAuthBanEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, UUID uuid, net.md_5.bungee.api.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 net.md_5.bungee.api.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