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

KillRate 2.1.1

Keep track of the number of kills

  1. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    @aliuly Cool plugin! Is it possible to get a player's score from their ranking, even if they are offline? (I'm trying to add {killrate_rank_1}, {killrate_rank_2} etc placeholders to my plugin)
  2. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Yes
  3. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Yes
  4. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Ok.. Could you please tell me how? I had a look at the documentation and code but couldn't find it..
    Legoboy0215 likes this.
  5. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    The KillRate API docs are here.

    Example:

    PHP:
    $kr $server->getPluginManager()->getPlugin("KillRate");
    $rankings $kr->api->getRankedScores();

    /* * * * */

    $text print_r($rankings,true);
    $sender->sendMessage($text);
  6. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Thanks, I'll try that!

    EDIT: Works perfectly! Thanks!
    Last edited: Oct 13, 2015
  7. GetAway
    Offline

    GetAway New Member

    Joined:
    Mar 26, 2015
    Posts:
    26
    Minecraft User:
    GetAway
    I am probably doing something wrong here but... I don't seem to be receiving any money on kill... I have EconomyAPI and EconomyShop installed. Thanks :)
    Here is the config.
    Code:
    ---
    version: 2.1.1
    features:
      '# signs': enable/disable signs
      signs: true
      '# ranks': Enable support for RankUp plugin
      ranks: false
      '# achievements': Enable PocketMine achievements
      achievements: true
      '# kill-streak': Enable kill-streak tracking.
      kill-streak: false
      '# rewards': award money.
      rewards: true
    settings:
      '# points': award points.
      points: true
      '# min-kills': Minimum number of kills before declaring a kill-streak
      min-kills: 100
      '# reset-on-death': Reset counters on death.
      reset-on-death: false
      '# creative': track creative kills.
      creative: false
      '# dynamic-updates': Update signs.
      dynamic-updates: 80
      '# default-rank': Default rank (when resetting ranks)
      default-rank: false
    values:
      <Example>:
      - money
      - points
      '*':
      - 1
      - 1
      Player:
      - 1
      - 1
    formats:
      default: '{sname} {count}'
      names: '{n}.{player}'
      scores: '{count}'
    database:
      '# backend': Use SQLiteMgr or MySqlMgr
      backend: SQLiteMgr
      '# MySql': MySQL settings.
      MySql:
        host: localhost
        user: nobody
        password: secret
        database: KillRateDb
        port: 3306
    signs:
      '[STATS]': stats
      '[ONLINE TOPS]': online-tops
      '[RANKINGS]': rankings
      '[RANKNAMES]': rankings-names
      '[RANKPOINTS]': rankings-points
      '[TOPNAMES]': online-top-names
      '[TOPPOINTS]': online-top-points
    ...
  8. PolarKing
    Offline

    PolarKing New Member

    Joined:
    Apr 4, 2015
    Posts:
    16
    Minecraft User:
    PolarKingMCPE
    Same issue as above. Players don't receive money when they kill others, and I have thoroughly checked my config file.
  9. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    @aliuly What is the API to reduce a player's point? :)
  10. Shadow166
    Offline

    Shadow166 New Member

    Joined:
    Nov 20, 2015
    Posts:
    33
    Minecraft User:
    Shadow166
    Name as showed as others I can't make so players receive money when the kill other players
  11. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Learn how to read and look around next time?
  12. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Look here on how to get access to the API: API
    List of API functions: API object

    To reduce players points use updateScore with a negative number:

    PHP:
    $api->updateScore$payer,"points", -100 );
    deot likes this.
  13. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    What's the output of the server log when KillRate is enabled. It should show you what Economy API was found.
  14. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    I don't receive money even I configured my config well. Using the latest version on GitHub. Help :(
  15. imstewpeed807
    Offline

    imstewpeed807 New Member

    Joined:
    Nov 7, 2015
    Posts:
    6
    Minecraft User:
    iamstewpeed807
    hey @Legoboy0215 try to make the min kill {streak} : 1 and Configure it and it will work
  16. PolarKing
    Offline

    PolarKing New Member

    Joined:
    Apr 4, 2015
    Posts:
    16
    Minecraft User:
    PolarKingMCPE
    @aliuly Players don't earn money when they kill people... help!
  17. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Did it used to work before?
  18. PolarKing
    Offline

    PolarKing New Member

    Joined:
    Apr 4, 2015
    Posts:
    16
    Minecraft User:
    PolarKingMCPE
    Yes, it did.
  19. PolarKing
    Offline

    PolarKing New Member

    Joined:
    Apr 4, 2015
    Posts:
    16
    Minecraft User:
    PolarKingMCPE
    @aliuly I don't want to rush you, but is there a fixed version available on github?
  20. Hittmana
    Offline

    Hittmana Active Member

    Joined:
    Jul 26, 2015
    Posts:
    224
    Minecraft User:
    move_it
    DOES NOT WORK FOR ME!! I place a sign with: [STATS] and it does nothing

Share This Page

Advertisement