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
ConstructorDescriptionPlayerTeamChangeEvent
(Player player, Arena arena, Team oldTeam, Team newTeam) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
@Nullable Team
Returns the new team to which the player has been moved to.@Nullable Team
Returns the previous team of the player.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEvent
getArena
-
Constructor Details
-
PlayerTeamChangeEvent
-
-
Method Details
-
getOldTeam
Returns the previous team of the player.null
meaning 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.null
meaning that he's not in a team (Only possible during lobby phase !).- Returns:
- His new team, might be
null
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-