Class PlayerJoinArenaEvent

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

public class PlayerJoinArenaEvent extends org.bukkit.event.Event
  • Nested Class Summary Link icon

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

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

    Constructors
    Constructor
    Description
    PlayerJoinArenaEvent(IArena arena, org.bukkit.entity.Player p, boolean spectator)
    This event is called when a player joins the arena as a player or spectator.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Get arena
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.entity.Player
    Get player
    boolean
    Check if event was cancelled
    boolean
    Check if the player has joined as spectator
    void
    setCancelled(boolean cancelled)
    Cancel event

    Methods inherited from class org.bukkit.event.Event Link icon

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object Link icon

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

    • PlayerJoinArenaEvent Link icon

      public PlayerJoinArenaEvent(IArena arena, org.bukkit.entity.Player p, boolean spectator)
      This event is called when a player joins the arena as a player or spectator. The event is not triggered for players who died and become spectators. Listen the kill event for this.
  • Method Details Link icon

    • getArena Link icon

      public IArena getArena()
      Get arena
    • getPlayer Link icon

      public org.bukkit.entity.Player getPlayer()
      Get player
    • isSpectator Link icon

      public boolean isSpectator()
      Check if the player has joined as spectator
    • isCancelled Link icon

      public boolean isCancelled()
      Check if event was cancelled
    • setCancelled Link icon

      public void setCancelled(boolean cancelled)
      Cancel event
    • getHandlers Link icon

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

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