public class PlayerSetTagEvent extends Event
Once the player has his tag, just update the tag's content with the same team, so there is no need to unregister and register teams.
Event.Result
Constructor and Description |
---|
PlayerSetTagEvent(Player player,
String tag,
Team team) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Player |
getPlayer()
Get player
|
String |
getTag()
Get current tag
|
Team |
getTeam()
Get the team
|
void |
setTag(String tag)
Give a new tag
|
void |
setTeam(Team team)
Set an team
|
getEventName, isAsynchronous
public Player getPlayer()
public String getTag()
public void setTag(String tag)
tag
- Tag to give this Playerpublic Team getTeam()
public void setTeam(Team team)
team
- Sets the Team of this Playerpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()