1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

KDR 1.0.1

Kill Death Ratio with API

Tags:
  1. PetteriM1
    Compatible API Versions:
    1.0.x
    Sourcecode:
    https://github.com/PetteriM1/KDR
    This simple plugin logs player kills & deaths and displays their KDR


    Commands:
    /kdr - Show own kills, deaths and KDR
    /kdr <player> - Show other players kills, deaths and KDR
    /kdr top - Show top player & KDR on the server


    Permissions:
    kdr.command
    kdr.top
    kdr.others


    There is also an API so you can use data saved by this plugin easily in your own plugin.
    The API is currently used for example in SimpleScoreboards.


    Available API methods:
    (String) kdr.Main.plugin.getTopKDRPlayer()
    (double) kdr.Main.plugin.getTopKDRScore()
    (int) kdr.Main.plugin.getKills(Player)
    (int) kdr.Main.plugin.getDeaths(Player)
    (void) kdr.Main.plugin.addKill(Player)
    (void) kdr.Main.plugin.addDeath(Player)
    (double) kdr.Main.plugin.getKDR(Player)
    (int) kdr.Main.plugin.getTopKills()
    (int) kdr.Main.plugin.getTopDeaths()
    (String) kdr.Main.plugin.getTopKillsPlayer()
    (String) kdr.Main.plugin.getTopDeathsPlayer()
    (void) kdr.Main.plugin.removeKill(Player)
    (void) kdr.Main.plugin.removeDeath(Player)
    (void) kdr.Main.plugin.resetKills(Player)
    (void) kdr.Main.plugin.resetDeaths(Player)
    (void) kdr.Main.plugin.resetStats(Player)