001package com.ericlam.mc.minigames.core.event.player;
002
003import com.ericlam.mc.minigames.core.character.GamePlayer;
004import com.ericlam.mc.minigames.core.game.GameState;
005import com.ericlam.mc.minigames.core.game.InGameState;
006
007import javax.annotation.Nonnull;
008import javax.annotation.Nullable;
009
010/**
011 * 場地加入事件
012 */
013public class GamePlayerJoinEvent extends GamePlayerEvent {
014
015    private GameState gameState;
016
017    public GamePlayerJoinEvent(GamePlayer gamePlayer, @Nullable InGameState state, @Nonnull GameState gameState) {
018        super(gamePlayer, state);
019        this.gameState = gameState;
020    }
021
022    public GameState getGameState() {
023        return gameState;
024    }
025}