Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You have to program this with the SpigotAPI or you use our ready-made plugin for this purpose. You can find this here: https://github.com/CaveFire/CaveCloud-Addon/releasesSpigotAPI:bitbucket.cavefire.net/projects/CC2/repos/cavecloud-addon/browse

SpigotAPI

Code Block
languagejava
linenumberstrue
Server self = SpigotApi.getSelfServer();
self.getServerData()
    .setPlayers(Bukkit.getOnlinePlayers().size())
    .setGameState(SpigotApi.getGamestate(this.gamestate))
    .setMaxplayers(this.maxPlayers)
    .setMotd(motd);

SpigotApi.updateSelfServerData();

1

Change Gamestate Layout

...

Each Gamestate has its own signature layout and can be customized. Here is a description of how you can do this in the web interface.

...