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
ConstructorDescriptionPlayerReJoinEvent
(org.bukkit.entity.Player player, IArena arena, int respawnTime) Called when a player re-joins the arena. -
Method Summary
Modifier and TypeMethodDescriptiongetArena()
Get arenastatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
Get playerint
Gets the amount of time until the player respawnsboolean
void
setCancelled
(boolean cancelled) void
setRespawnTime
(int respawnTime) Sets the amount of time until the player respawnsMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerReJoinEvent
Called when a player re-joins the arena. PlayerJoinArenaEvent won't be called
-
-
Method Details
-
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 classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-