Class PlayerLeaveArenaEvent

java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.player.PlayerLeaveArenaEvent

public class PlayerLeaveArenaEvent extends org.bukkit.event.Event
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerLeaveArenaEvent(org.bukkit.entity.Player p, IArena arena)
    Deprecated.
    PlayerLeaveArenaEvent(org.bukkit.entity.Player p, IArena arena, @Nullable org.bukkit.entity.Player lastDamager)
    Called when a player leaves the arena.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the arena
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    @Nullable org.bukkit.entity.Player
    Get the player's last damager, might be null
    org.bukkit.entity.Player
     
    boolean
    Check if the player was spectating.

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlayerLeaveArenaEvent

      public PlayerLeaveArenaEvent(org.bukkit.entity.Player p, IArena arena, @Nullable @Nullable org.bukkit.entity.Player lastDamager)
      Called when a player leaves the arena. This is called if the arena has ended as well.
    • PlayerLeaveArenaEvent

      @Deprecated public PlayerLeaveArenaEvent(org.bukkit.entity.Player p, IArena arena)
      Deprecated.
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
    • getArena

      public IArena getArena()
      Get the arena
    • isSpectator

      public boolean isSpectator()
      Check if the player was spectating.
    • getLastDamager

      @Nullable public @Nullable org.bukkit.entity.Player getLastDamager()
      Get the player's last damager, might be null
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()