Class PlayerBookTooLargeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.purpurmc.purpur.event.player.PlayerBookTooLargeEvent
Called when a player tries to bypass book limitations
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class PlayerEvent
player -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBook()Get the book containing the wanted editsstatic HandlerListvoidsetShouldKickPlayer(boolean kickPlayer) Whether server should kick the player or notbooleanWhether server should kick the player or notMethods inherited from class PlayerEvent
getPlayerMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerBookTooLargeEvent
-
-
Method Details
-
getBook
-
shouldKickPlayer
public boolean shouldKickPlayer()Whether server should kick the player or not- Returns:
- True to kick player
-
setShouldKickPlayer
public void setShouldKickPlayer(boolean kickPlayer) Whether server should kick the player or not- Parameters:
kickPlayer- True to kick player
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-