public class PlayerRemoveTagEvent extends Event implements Cancellable
When player quit or is kicked, this is called to remove the player team. If player re-join in server, PlayerSetTagEvent is called to set new team to player.
Event.Result| Constructor and Description |
|---|
PlayerRemoveTagEvent(Player player,
Team team) |
| Modifier and Type | Method and Description |
|---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Player |
getPlayer()
Get player
|
Team |
getTeam()
Get the team
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setTeam(Team team)
Set an team
|
getEventName, isAsynchronouspublic Player getPlayer()
public Team getTeam()
public void setTeam(Team team)
team - Sets the Team of this Playerpublic boolean isCancelled()
isCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
setCancelled in interface Cancellablepublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()