Package org.purpurmc.purpur.event.player
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 org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBook()Get the book containing the wanted editsstatic @NotNull HandlerListvoidsetShouldKickPlayer(boolean kickPlayer) Whether server should kick the player or notbooleanWhether server should kick the player or notMethods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerBookTooLargeEvent
- Parameters:
player- The playerbook- The book
-
-
Method Details
-
getBook
Get the book containing the wanted edits- Returns:
- The book
-
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
-