Class GamePlayerPreJoinEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- org.bukkit.event.player.PlayerEvent
-
- com.ericlam.mc.minigames.core.event.player.GamePlayerPreJoinEvent
-
- All Implemented Interfaces:
Cancellable
public final class GamePlayerPreJoinEvent extends PlayerEvent implements Cancellable
遊戲玩家準備加入時觸發的事件。此事件可以被取消。當取消事件後,小遊戲系統將不會把該玩家加入為遊戲玩家。
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
-
Constructor Summary
Constructors Constructor Description GamePlayerPreJoinEvent(Player who, GameState state, InGameState inGameState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HandlerList
getHandlers()
InGameState
getInGameState()
獲取場地狀態GameState
getState()
獲取遊戲狀態boolean
isCancelled()
void
setCancelled(boolean b)
-
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
-
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
-
-
-
Constructor Detail
-
GamePlayerPreJoinEvent
public GamePlayerPreJoinEvent(Player who, GameState state, @Nullable InGameState inGameState)
-
-
Method Detail
-
getHandlers
@Nonnull public HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean b)
- Specified by:
setCancelled
in interfaceCancellable
-
getInGameState
@Nullable public InGameState getInGameState()
獲取場地狀態- Returns:
- 場地狀態
-
-