Class PlayerArenaVoteEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerArenaVoteEvent
All Implemented Interfaces:
ArenaEvent, Cancellable

public class PlayerArenaVoteEvent extends PlayerEvent implements ArenaEvent, Cancellable
Gets called when a player votes for an arena in the voting phase.
  • Constructor Details

    • PlayerArenaVoteEvent

      public PlayerArenaVoteEvent(Player player, Arena arena, @Nullable @Nullable Arena oldChoice, @Nullable @Nullable Arena newChoice)
  • Method Details

    • getVoting

      public ArenaVotingHandler getVoting()
      Get the voting handler of the arena in which the voting is happening.
      Returns:
      The voting handler of the arena in which the voting is happening.
    • getOldChoice

      @Nullable public @Nullable Arena getOldChoice()
      Get the previous choice of the player.
      Returns:
      The previous choice of the player, may be null if the player didn't have a previous choice.
    • getNewChoice

      @Nullable public @Nullable Arena getNewChoice()
      Get the new choice of the player.
      Returns:
      The new choice of the player, may be null if the player removed his vote.
    • getHandlers

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

      public static HandlerList getHandlerList()