Class PlayerRejoinArenaEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerRejoinArenaEvent
All Implemented Interfaces:
ArenaEvent

public class PlayerRejoinArenaEvent extends PlayerEvent implements ArenaEvent
  • Constructor Details

  • Method Details

    • getMemory

      @Nullable public @Nullable QuitPlayerMemory getMemory()
      Returns the memory of the player that contains all info needed to successfully make him rejoin the arena.

      It's possible that it's null as no memory was found for the player.

      Returns:
      The memory of the player. Possibly null
    • hasIssues

      public boolean hasIssues()
      Returns if the player has any issues rejoining the arena.
      Returns:
      If there are issues which cause the player not being able to rejoin the arena
    • getIssues

      public Set<RejoinPlayerIssue> getIssues()
      Returns all issues there are for the player to rejoin the arena.
      Returns:
      The issues why the player can't rejoin the arena
    • addIssue

      public boolean addIssue(RejoinPlayerIssue issue)
      Adds an issue which causes the player to not be able to rejoin the arena.
      Parameters:
      issue - The issue that shall be added
      Returns:
      false if that issue already existed before
    • removeIssue

      public boolean removeIssue(RejoinPlayerIssue issue)
      Removes an issue. If all were removed the player will be able to rejoin the arena.
      Parameters:
      issue - The issue that shall be removed
      Returns:
      true if it has been removed
    • getHandlers

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

      public static HandlerList getHandlerList()