Skip to content
This repository was archived by the owner on Jul 10, 2022. It is now read-only.

Server Pairing

Ian Castaño edited this page Nov 7, 2020 · 1 revision

To pair a game mode with Centauri, the server needs to be in GAME mode, which will enable an ad-hoc mode for two minutes, allowing any game to pair with it.

Configuring a GAME server

To configure a GAME server you just have to fill in the following information in the config.yml located at Centauri.

game:
  running: 0                                     # Max games running at one (Only applies at GAME mode)
  total: 0                                       # Max game running at server lifecycle (Only applies at GAME mode)
  mode: 0123456789abcdefg                        # Database ID of the desired game
  subMode: 0123456789abcdefg                     # Database ID of the desired SubGameMode

Calling pairing event

To pair a game with a server, this plugin must call the GameModePairEvent event as soon as it is ready to receive games and provide you with the GameMode and SubGameMode that you want to pair with.

Bukkit.getPluginManager().callEvent(new GameModePairEvent(gameMode, subGameMode));

Once the pairing is finished, the game sanitization process will proceed immediately.

Clone this wiki locally