001package com.ericlam.mc.minigames.core.event.player;
002
003import com.ericlam.mc.minigames.core.arena.Arena;
004import com.ericlam.mc.minigames.core.character.GamePlayer;
005
006import javax.annotation.Nullable;
007
008/**
009 * 遊戲玩家取消投票地圖事件
010 */
011public final class GamePlayerUnVoteEvent extends GamePlayerEvent {
012
013    private final Arena previousVoted;
014
015    public GamePlayerUnVoteEvent(@Nullable Arena previousVoted, GamePlayer gamePlayer) {
016        super(gamePlayer, null);
017        this.previousVoted = previousVoted;
018    }
019
020
021    /**
022     * @return 前一個投票的地圖
023     */
024    @Nullable
025    public Arena getPreviousVoted() {
026        return previousVoted;
027    }
028}