Class PlayerBookTooLargeEvent

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

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

  • Method Details

    • getBook

      @NotNull public @NotNull 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

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

      @NotNull public static @NotNull HandlerList getHandlerList()