This file contains the configuration json of the home page of superstats web addon.


This file contains a list in json format of each of the data to be displayed on the main page.

Example:

  • [
        {
            "name":"Total Players:",
            "stats":"player",
    		"type":"records"
        },
        {
            "name":"Total Credits:",
            "stats":"supercredits_credits",
    		"type":"integer"
        },
    	{
            "name":"Total Votes:",
            "stats":"votingplugin_alltimetotal",
    		"type":"integer"
        },
    	{
            "name":"Total Referrals:",
            "stats":"rs_referrals",
    		"type":"integer"
        }
    ]

Statistics nodes configuration.


name:

  • Any string value.
  • Example: Total Credits:
  • The name of the statistic to display.

stats:

  • Any string value.
  • Example: supercredits_credits
  • The placeholder identifier of the statistic to display.

type:

  • Any string value.
  • Example: integer
  • The total data type to query. (records, integer, decimal).
    • records: The total number of records in the database for a placeholder identifier.
    • integer: The sum of all integer data stored in the database for a placeholder identifier.
    • decimal: The sum of all decimal data stored in the database for a placeholder identifier.