Skip to content

Commands

RedPolygon edited this page Nov 3, 2023 · 4 revisions

WebStats has two commands that are there mainly for testing and debugging, and three others related to the storage of statistics.

  • /webstats reload — reloads the plugin
    Mainly useful when changing the config file without having to restart the entire server every time.

  • /webstats debug — prints debug output
    When you report a bug, I may sometimes ask you to give me the output of this command. It reports which sources are active and their status. (beware: it also prints all loaded placeholder values, which may be a lot for large servers)

  • /webstats export — exports statistics to a csv file
    To specify which columns to export, create the file /plugins/WebStats/stats.csv yourself and write the header like so:

    Date,Player,XP
    
  • /webstats migrate-placeholders-to <database | csv> — migrates placeholders
    When you have previously stored placeholders in a database but want to store them in a local csv file, you can run this command to download them from the database (also works from csv to database).

    Make sure to set the database credentials in config.yml before migrating, and to update store-placeholders-database and store-placeholders-in-file afterwards to reflect this new configuration.

  • /webstats delete-placeholders <player | UUID> — deletes stored placeholders
    If you use PlaceholderAPI integration and store the placeholders for offline players, running this command will make WebStats remove all stored placeholders for that player.

Clone this wiki locally