GameService

Query active games and find player games.

GameService games = api.getGameService();

if (games.isInGame(player)) {
    ZentrixGame game = games.getPlayerGame(player).get();
}

Methods:

  • getActiveGames() - all running games

  • getPlayerGame(player) - Optional game

  • isInGame(player) - boolean check

Last updated