Commands
Commands and how to use them.
Statistics
/cps stats [uuid|name] [-refresh / -r]
(permission: cps.stats
)
Shows the statistics 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).
If the target player is online or their profile is cached, displays the cached data. If the data are just being fetched, you might end up with pending data request message.
Admins only:
If there is no cached data, the plugin attempts to fetch it from the data storage. If database is used, the sender must have cps.stats.fetch
permission to request the data remotely, otherwise they will end up with data not found message. It is recommended that regular players do not have this permission to prevent database request flood (they will only be able to view online and cached profiles).
The -refresh
flag requires permission cps.stats.refresh
and initiates immediate refresh of the player's profile from the data storage.
Leaderboard
/cps leaderboard [page] [-fetch / -f] [-refresh / -r]
(permission: cps.leaderboard
)
Shows the cached leaderboard at the given page. If the page argument is not provided, displays the first page.
The cached leaderboard, if database is used, is limited to the configured amount of entries (available under data.leaderboard.limit
).
Admins only:
If you'd like to display a page which is not cached, you can use the -fetch
flag (requires cps.leaderboard.fetch
permission). This flag will attempt to request the page from the data storage.
If you need to refresh the leaderboard immediately, you can do so by using the -refresh
flag which requires permission cps.leaderboard.refresh
.
Watching
/cps watch [name]
(permission: cps.watch
, admins only)
Starts/stops watching CPS of player with the provided name (if online).
If the sending player is already watching someone and they provide a new name, the plugin automatically switches to them. If the name of the player which is already being watched is provided, or none at all, stops watching. If the currently watched player disconnects, it will be stopped automatically.
You can only watch online players excluding yourself.
Deleting
/cps delete <name|uuid|all>
(permission: cps.delete
+ cps.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 /cps confirm
within 20s of executing the delete command.
Reloading
/cps reload
(permission: cps.reload
, admins only)
Reloads the plugin configuration.
Does not change the data storage and does not change the sampling rate. To reload everything, including those settings, restart the server.
Last updated