Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.6 KB

README.md

File metadata and controls

49 lines (38 loc) · 1.6 KB

KDR Banner

KDR

HitCount License Poggit Release
HitCount GitHub license Poggit-CI

A KDR, Kill Death Ratio plugin for your Minecraft Bedrock Server. Allows you to keep track of players kills, deaths and kill to death ratio.

Features

  • Keep track of players kills.
  • Keep track of players deaths.
  • Keep track of players kill to death ratio.
  • Two storage ways are supported: - Yaml - SQLite3
  • Simple and neat api for developers.

How to setup?

  • Put the plugin in your plugins folder.
  • Start and then stop the server.
  • Edit the config.yml to suit your needs.
  • Restart and enjoy...

API

KDR provides a simple way api for the developers.

First of all you need to get the KDR Instance.

KDR::getInstance();
  • To get the kill count of a player:
KDR::getInstance()->getProvider()->getPlayerKillPoints($player);
  • To get the death count of a player:
KDR::getInstance()->getProvider()->getPlayerDeathPoints($player);
  • To get the kill to death ratio of a player:
KDR::getInstance()->getProvider()->getKillToDeathRatio($player);

And thats about it. Let me know if I missed out on something.