Class PlayerTeamChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerTeamChangeEvent
- All Implemented Interfaces:
 ArenaEvent
Gets called after a player has changed his team.
 
Note that plugins may also change the team during the match/end lobby using the API.
- 
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result - 
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player - 
Constructor Summary
ConstructorsConstructorDescriptionPlayerTeamChangeEvent(Player player, Arena arena, Team oldTeam, Team newTeam)  - 
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList@Nullable TeamReturns the new team to which the player has been moved to.@Nullable TeamReturns the previous team of the player.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEvent
getArena 
- 
Constructor Details
- 
PlayerTeamChangeEvent
 
 - 
 - 
Method Details
- 
getOldTeam
Returns the previous team of the player.nullmeaning that he wasn't in a team before.- Returns:
 - The previous team of the player, might be 
null 
 - 
getNewTeam
Returns the new team to which the player has been moved to.nullmeaning that he's not in a team (Only possible during lobby phase !).- Returns:
 - His new team, might be 
null 
 - 
getHandlers
- Specified by:
 getHandlersin classEvent
 - 
getHandlerList
 
 -