Solved Scoreboard stats from config?

Discussion in 'Plugin Development' started by Scrapnix, Oct 30, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Scrapnix

    Hey, I have a big problem, I want to make a Scoreboard with stats like kills and deaths, but I don't know how to make this. Do I have to create a config and save the deaths/kills in it? Please help. :D
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. @Scrapnix
    Yes, create a kills and deaths counter (with PlayerDeathEvent) and save datas in the config.yml or other file. And just get the number of kills/deaths with
    Code:
    getConfig().getInt("path name");
     
  4. Offline

    Lolmewn

    OR hook into Stats (see my signature) :D
     
    timtower likes this.
  5. Offline

    Scrapnix

    1. Okay, thanks, I tried out this method and it works, thanks ;)
     
  6. Offline

    Zombie_Striker

    @Scrapnix
    If your problem has been solved, mark this thread as solved.
     
Thread Status:
Not open for further replies.

Share This Page