Class PlayerQuitArenaEvent

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

public class PlayerQuitArenaEvent extends PlayerEvent implements ArenaEvent
Gets called when a player leaves an arena
  • Constructor Details

  • Method Details

    • getReason

      public KickReason getReason()
      Returns the reason why he left the arena.
      Returns:
      The reason
    • getTeam

      @Nullable public @Nullable Team getTeam()
      Returns the team in which he was before he left the arena.

      Might be null when they didn't join any as it's possible during the lobby phase.

      Returns:
      The arena in which he played in
    • getMemory

      @Nullable public @Nullable QuitPlayerMemory getMemory()
      Returns the memory instance that allows the player to rejoin the match.

      It might be null in cases where the game's state isn't equal to ArenaStatus.RUNNING or when it doesn't make any sense as for instance when the match is about to end.

      Returns:
      The memory of the player. Might be null
    • getHandlers

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

      public static HandlerList getHandlerList()