Commands

Commands and how to use them.

Player commands

Changing game visibility 👀

/cg show /cg hide /cg toggle (permission: chatgames.visibility)

Shows, hides or toggles the visibility (showing and hiding) of games.

Default show/hide messages.

Looking up wins 💎

/cg wins [name|uuid] (permission: chatgames.wins)

Shows wins of a player identified by the given UUID or name. If the argument is not provided, displays your statistics (in this case the command must not be run from console).

Default wins message.

Leaderboard 🏆

/cg leaderboard [page] [-refresh / -r] (permission: chatgames.leaderboard)

Shows the cached leaderboard at the given page. If the page argument is not provided, displays the first page.

The cached leaderboard is refreshed automatically every 5 minutes. To change this, update leaderboard-refresh-delay in the config.

Admins only:

If you need to refresh the leaderboard immediately, you can do so by using the -refresh flag which requires permission cg.leaderboard.refresh.

Default leaderboard message.

Admin commands

Diagnosing â„šī¸

/cg diagnostics (permission: chatgames.diagnostics, admins only)

Shows information needed for issue diagnosing, but also useful data and server wide statistics. That is, database sizes, server statistics, game statuses and runtime information.

Diagnostics, image 1/2.
Diagnostics, image 2/2.

Starting a game 🏁

/cg start [game] (permission: chatgames.start, admins only)

Starts a new game by the given name, or, if game was not given, a random game.

If there's a currently active game, it is stopped.

Stoping a game 🛑

/cg stop (permission: chatgames.stop, admins only)

Stops the currently active game.

Deleting data 🚮

/cg delete <name|uuid|all> (permission: chatgames.delete + chatgames.confirm, admins only)

Deletes data associated with a player identified by the given UUID or name, or deletes all data from the data storage.

Data deletion is subject to confirmation by calling /cg confirm within 20s of executing the delete command.

Reloading â™ģī¸

/cg reload (permission: chatgames.reload, admins only)

Reloads the plugin configuration.

Last updated