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
Gets called when a player votes for an arena in the voting phase.
-
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
ConstructorsConstructorDescriptionPlayerArenaVoteEvent(Player player, Arena arena, @Nullable Arena oldChoice, @Nullable Arena newChoice) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList@Nullable ArenaGet the new choice of the player.@Nullable ArenaGet the previous choice of the player.Get the voting handler of the arena in which the voting is happening.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEvent
getArenaMethods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
PlayerArenaVoteEvent
-
-
Method Details
-
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
Get the previous choice of the player.- Returns:
- The previous choice of the player, may be
nullif the player didn't have a previous choice.
-
getNewChoice
Get the new choice of the player.- Returns:
- The new choice of the player, may be
nullif the player removed his vote.
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-