Class PlayerBaseLeaveEvent
java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.player.PlayerBaseLeaveEvent
public class PlayerBaseLeaveEvent
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
ConstructorDescriptionPlayerBaseLeaveEvent
(org.bukkit.entity.Player p, ITeam team) Called when a player leaves a team base. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
Get the player that leaved the basegetTeam()
Get the team owing the exited baseMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerBaseLeaveEvent
Called when a player leaves a team base. Called when the distance between the player and a team's bed is greater than islandRadius
-
-
Method Details
-
getTeam
Get the team owing the exited base -
getPlayer
public org.bukkit.entity.Player getPlayer()Get the player that leaved the base -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-