Class PlayerBookTooLargeEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.purpurmc.purpur.event.player.PlayerBookTooLargeEvent

@NullMarked public class PlayerBookTooLargeEvent extends PlayerEvent
Called when a player tries to bypass book limitations
  • Constructor Details

    • PlayerBookTooLargeEvent

      @Internal public PlayerBookTooLargeEvent(Player player, ItemStack book)
      Parameters:
      player - The player
      book - The book
  • Method Details

    • getBook

      public ItemStack 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

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()