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
ConstructorDescriptionPlayerArenaVoteEvent
(Player player, Arena arena, @Nullable Arena oldChoice, @Nullable Arena newChoice) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
@Nullable Arena
Get the new choice of the player.@Nullable Arena
Get 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
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
Methods 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
null
if 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
null
if the player removed his vote.
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-