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
ConstructorsConstructorDescriptionGSAuthBanEvent(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.CommandSenderTheCommandSender(un)banning the player.booleanReturn whether the player is now bannedMethods inherited from class com.gamersafer.minecraft.auth.bungeecord.event.GSAuthEvent
getPlayer, getUuidMethods 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- theUUIDof 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
CommandSenderperforming the action
-
isNowBanned
public boolean isNowBanned()Return whether the player is now banned- Returns:
- whether the player is now banned
-