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

public class PlayerTeamChangeEvent extends PlayerEvent implements 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.

  • Constructor Details

    • PlayerTeamChangeEvent

      public PlayerTeamChangeEvent(Player player, Arena arena, Team oldTeam, Team newTeam)
  • Method Details

    • getOldTeam

      @Nullable public @Nullable Team 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

      @Nullable public @Nullable Team 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

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()