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 SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerTeamChangeEvent(Player player, Arena arena, Team oldTeam, Team newTeam) 
- 
Method SummaryModifier 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.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronousMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEventgetArena
- 
Constructor Details- 
PlayerTeamChangeEvent
 
- 
- 
Method Details- 
getOldTeamReturns 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
 
- 
getNewTeamReturns 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 class- Event
 
- 
getHandlerList
 
-