Class PlayerReJoinEvent

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

public class PlayerReJoinEvent 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
    PlayerReJoinEvent(org.bukkit.entity.Player player, IArena arena, int respawnTime)
    Called when a player re-joins the arena.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get arena
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.entity.Player
    Get player
    int
    Gets the amount of time until the player respawns
    boolean
     
    void
    setCancelled(boolean cancelled)
     
    void
    setRespawnTime(int respawnTime)
    Sets the amount of time until the player respawns

    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

    • PlayerReJoinEvent

      public PlayerReJoinEvent(org.bukkit.entity.Player player, IArena arena, int respawnTime)
      Called when a player re-joins the arena. PlayerJoinArenaEvent won't be called
  • Method Details

    • getArena

      public IArena getArena()
      Get arena
    • getPlayer

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

      public void setRespawnTime(int respawnTime)
      Sets the amount of time until the player respawns
      Parameters:
      respawnTime - time in seconds
    • getRespawnTime

      public int getRespawnTime()
      Gets the amount of time until the player respawns
      Returns:
      time in seconds
    • isCancelled

      public boolean isCancelled()
    • setCancelled

      public void setCancelled(boolean cancelled)
    • getHandlers

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

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