Package net.blueva.arcade.api.events
Class PlayerEliminateEvent<P>
java.lang.Object
net.blueva.arcade.api.events.GameEvent
net.blueva.arcade.api.events.PlayerEliminateEvent<P>
- Type Parameters:
P- the player type (platform-specific)
Event fired when a player is eliminated from the game.
This event is triggered when a player's state changes to ELIMINATED. The reason for elimination can vary depending on the game (e.g., death, timeout, rule violation). Game modules can listen to this event to perform custom actions when players are eliminated.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerEliminateEvent(int arenaId, String gameId, P player, String reason) Constructs a new PlayerEliminateEvent. -
Method Summary
Methods inherited from class net.blueva.arcade.api.events.GameEvent
getArenaId, getGameId
-
Constructor Details
-
PlayerEliminateEvent
Constructs a new PlayerEliminateEvent.- Parameters:
arenaId- the ID of the arena where the elimination occurredgameId- the unique identifier of the game moduleplayer- the player who was eliminatedreason- the reason for the elimination (game-specific)
-
-
Method Details
-
getPlayer
Gets the player who was eliminated.- Returns:
- the eliminated player
-
getReason
Gets the reason why the player was eliminated.- Returns:
- a description of why the player was eliminated
-