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

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

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

    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

    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

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • PlayerJoinArenaEvent

      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

    • getArena

      public IArena getArena()
      Get arena
    • getPlayer

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

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

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

      public void setCancelled(boolean cancelled)
      Cancel event
    • getHandlers

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

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