Class GSAuthBanEvent
java.lang.Object
com.gamersafer.minecraft.auth.velocity.event.GSAuthEvent
com.gamersafer.minecraft.auth.velocity.event.GSAuthBanEvent
Fired when a user is (un)banned
-
Constructor Summary
ConstructorsConstructorDescriptionGSAuthBanEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource banner, boolean nowBanned) Creates a newGSAuthBanEvent -
Method Summary
Modifier and TypeMethodDescriptioncom.velocitypowered.api.command.CommandSourceTheCommandSource(un)banning the player.booleanReturn whether the player is now bannedMethods inherited from class com.gamersafer.minecraft.auth.velocity.event.GSAuthEvent
getPlayer, getUuid
-
Constructor Details
-
GSAuthBanEvent
public GSAuthBanEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource 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 com.velocitypowered.api.command.CommandSource getBanner()TheCommandSource(un)banning the player.- Returns:
- the
CommandSourceperforming the action
-
isNowBanned
public boolean isNowBanned()Return whether the player is now banned- Returns:
- whether the player is now banned
-