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
Fired when a user is (un)banned
-
Constructor Summary
ConstructorDescriptionGSAuthBanEvent
(net.md_5.bungee.api.connection.ProxiedPlayer player, UUID uuid, net.md_5.bungee.api.CommandSender banner, boolean nowBanned) Creates a newGSAuthBanEvent
-
Method Summary
Modifier and TypeMethodDescriptionnet.md_5.bungee.api.CommandSender
TheCommandSender
(un)banning the player.boolean
Return whether the player is now bannedMethods inherited from class com.gamersafer.minecraft.auth.bungeecord.event.GSAuthEvent
getPlayer, getUuid
Methods inherited from class net.md_5.bungee.api.plugin.Event
postCall
-
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 newGSAuthBanEvent
- Parameters:
player
- the (un)banned playeruuid
- theUUID
of the (un)banned playerbanner
- the sender issuing the (un)bannowBanned
- whether the player is now banned
-
-
Method Details
-
getBanner
public net.md_5.bungee.api.CommandSender getBanner()TheCommandSender
(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
-