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, isAsynchronous
public Player getPlayer()
public Team getTeam()
public void setTeam(Team team)
team
- Sets the Team of this Playerpublic boolean isCancelled()
isCancelled
in interface Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface Cancellable
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()