Skip to content

Commands

RedPolygon edited this page Oct 3, 2022 · 4 revisions

WebStats has two commands that are there mainly for testing and debugging, and two 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 ...
    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.

Clone this wiki locally