Package net.fateuhc.plugin.api.events
Class PlayerLeaveTeamEvent
java.lang.Object
org.bukkit.event.Event
net.fateuhc.plugin.api.events.PlayerLeaveTeamEvent
public class PlayerLeaveTeamEvent
extends org.bukkit.event.Event
This event is called when the player leaves the team.
- Since:
- API v0.4-ALPHA
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.event.HandlerListGet the player's old team.intGet the player's old team id.org.bukkit.OfflinePlayerGet the player who has left the team.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerLeaveTeamEvent
public PlayerLeaveTeamEvent()
-
-
Method Details
-
getOldTeam
Get the player's old team.- Returns:
- The old
Team
-
getOldTeamId
public int getOldTeamId()Get the player's old team id.- Returns:
Integer
-
getPlayer
public org.bukkit.OfflinePlayer getPlayer()Get the player who has left the team.- Returns:
OfflinePlayer
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-