Class GSAuthBanEvent
java.lang.Object
org.bukkit.event.Event
com.gamersafer.minecraft.auth.paper.event.GSAuthEvent
com.gamersafer.minecraft.auth.paper.event.GSAuthBanEvent
Fired when a user is (un)banned
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionGSAuthBanEvent(org.bukkit.entity.Player player, UUID uuid, org.bukkit.command.CommandSender banner, boolean nowBanned) Creates a newGSAuthBanEvent -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.command.CommandSenderTheCommandSender(un)banning the player.static org.bukkit.event.HandlerListStatic getter for the handler listorg.bukkit.event.HandlerListbooleanReturn whether the player is now bannedMethods inherited from class com.gamersafer.minecraft.auth.paper.event.GSAuthEvent
getPlayer, getUuidMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
GSAuthBanEvent
public GSAuthBanEvent(org.bukkit.entity.Player player, UUID uuid, org.bukkit.command.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 org.bukkit.command.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
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Static getter for the handler list- Returns:
- the handler list
-