Statistics

Discussion in 'Spigot Plugin Help' started by KingDotCom, Jun 3, 2016.

  1. Hi, I want to make a command that resets the Spigot Statistics, Deaths, Entity Kills and etc. I want to reset them to 0.
     
  2. Sw4p

    Supporter

    Have you made a plugin to track all this data? If not then there is nothing to set as spigot doesn't track this as far as i'm aware.
     
  3. Yes but now I want to reset all the data that it's counted I am using Statistics.Deaths and etc
     
  4. Sw4p

    Supporter

    If im understanding you correctly then all you would have to do is set your deaths variable back to 0 and etc...
     
  5. Sw4p

    Supporter

    Ill just assume that you are using the default config for spigot to store your variable. You would use "getConfig().set("path", value);" and then make sure to save with "saveConfig()".
    [edit]
    next time try to google your answer or look for a thread similar to yours. Im sure there is thousands.