Class TeamSelectorChooseEvent


  • public class TeamSelectorChooseEvent
    extends org.bukkit.event.Event
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bukkit.event.Event

        org.bukkit.event.Event.Result
    • Constructor Summary

      Constructors 
      Constructor Description
      TeamSelectorChooseEvent​(org.bukkit.entity.Player player, com.andrei1058.bedwars.api.arena.IArena arena, com.andrei1058.bedwars.api.arena.team.ITeam chosen, com.andrei1058.bedwars.api.arena.team.ITeam oldChoice)
      Called when a Player joins a team via team selector
    • Method Summary

      Modifier and Type Method Description
      com.andrei1058.bedwars.api.arena.IArena getArena()
      Get arena
      com.andrei1058.bedwars.api.arena.team.ITeam getChosen()
      Get chosen team
      static org.bukkit.event.HandlerList getHandlerList()  
      org.bukkit.event.HandlerList getHandlers()  
      com.andrei1058.bedwars.api.arena.team.ITeam getOldChoice()
      Get old choice.
      org.bukkit.entity.Player getPlayer()
      Get player
      boolean isCancelled()
      Check if event is canceled
      void setCancelled​(boolean cancelled)
      If you cancel it and the player's having a team, it will remain in it
      • 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
    • Constructor Detail

      • TeamSelectorChooseEvent

        public TeamSelectorChooseEvent​(org.bukkit.entity.Player player,
                                       com.andrei1058.bedwars.api.arena.IArena arena,
                                       com.andrei1058.bedwars.api.arena.team.ITeam chosen,
                                       com.andrei1058.bedwars.api.arena.team.ITeam oldChoice)
        Called when a Player joins a team via team selector
    • Method Detail

      • getPlayer

        public org.bukkit.entity.Player getPlayer()
        Get player
      • getArena

        public com.andrei1058.bedwars.api.arena.IArena getArena()
        Get arena
      • getChosen

        public com.andrei1058.bedwars.api.arena.team.ITeam getChosen()
        Get chosen team
      • getOldChoice

        public com.andrei1058.bedwars.api.arena.team.ITeam getOldChoice()
        Get old choice.
        Returns:
        null if it's the first player's choice
      • isCancelled

        public boolean isCancelled()
        Check if event is canceled
      • setCancelled

        public void setCancelled​(boolean cancelled)
        If you cancel it and the player's having a team, it will remain in it
      • getHandlers

        public org.bukkit.event.HandlerList getHandlers()
        Specified by:
        getHandlers in class org.bukkit.event.Event
      • getHandlerList

        public static org.bukkit.event.HandlerList getHandlerList()