Class GSBansBanEvent
java.lang.Object
com.gamersafer.minecraft.bans.velocity.event.GSBansEvent
com.gamersafer.minecraft.bans.velocity.event.GSBansBanEvent
Fired when a user is (un)banned
-
Constructor Summary
ConstructorsConstructorDescriptionGSBansBanEvent
(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource banner, boolean nowBanned) Creates a newGSBansBanEvent
-
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.bans.velocity.event.GSBansEvent
getPlayer, getUuid
-
Constructor Details
-
GSBansBanEvent
public GSBansBanEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource banner, boolean nowBanned) Creates a newGSBansBanEvent
- 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
-