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
ConstructorDescriptionGSAuthBanEvent
(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.CommandSource
TheCommandSource
(un)banning the player.boolean
Return 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
- theUUID
of 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
CommandSource
performing the action
-
isNowBanned
public boolean isNowBanned()Return whether the player is now banned- Returns:
- whether the player is now banned
-