Solved Highest Kill Streak

Discussion in 'Plugin Development' started by WingedMLGPro, Mar 27, 2015.

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

    WingedMLGPro

    Hey Everyone!
    So i have made a stats plugin that records deaths, kills and Killstreak
    but i want to make a Highest Kill Streak,
    so here is my attempt of doing it:
    if (TheMain.StatsSettings.SwiftyStats.getInt(k.getName() + ".hks") < TheMain.StatsSettings.SwiftyStats.getInt(k.getName() + ".killsteak")){
    TheMain.StatsSettings.SwiftyStats.set(k.getName()+".hks", TheMain.StatsSettings.SwiftyStats.getInt(k.getName()+".killstreak"));TheMain.StatsSettings.saveConfig();}

    but that doesnt work!

    plz help <3

    WingedMLGPro
     
  2. Offline

    nverdier

    @WingedMLGPro What doesn't work about it? Any why so many statics?
     
  3. Offline

    WingedMLGPro

    @nverdier it wont set the highest kill streak to it
     
  4. Offline

    nverdier

    @WingedMLGPro Well you're seeming to get from the config when you should be setting...
     
  5. Offline

    WingedMLGPro

  6. Offline

    nverdier

    @WingedMLGPro You are getting from the config when it seems you should be setting to the config.
     
  7. Offline

    WingedMLGPro

    @nverdier it is an if statement, what im doing is if Highest Kill Streak(HKS) is less than KillStreak.
    Then Set the HKC to KillStreak
     
  8. Offline

    WingedMLGPro

    Sorry everyone, it turned out i just did a silly typo! xD
     
Thread Status:
Not open for further replies.

Share This Page