gamepadGames

🎮 Game Instance

The Game object represents an active match in ArenaLegends. You can use it to retrieve information about the current state, active players, and more.

circle-info

Check the Javadocsarrow-up-right for reference.


🧮 Accessing Games

The easiest way to retrieve a game instance is through the GameManager or GameDataManager.

By ID

You can look up a game using its specific identifier.

import xericker.arenalegends.core.game.Game;
import xericker.arenalegends.core.game.GameManager;

Game game = GameManager.getById("my-arena");
if (game != null) {
    // Perform actions with the game
}

From a Player

If you want to know if a player is currently in a game:


📋 Structured Data

Once you have a Game object, you can access its structured data and components.

Game State

The state of a game dictates what phase it is currently in (e.g., waiting, starting, in-game).

Players & Teams

You can fetch the list of participating players or determine which team a player belongs to.

Last updated