need help making a KDR kill death ratio plugin Requirements: - Track every kill and death - Save them on a yml file or json - Import all pocketmine required classes for it - on /kdr command tell player his kdr incluying his total kills and deaths - on /kdr show the kdr (e.g. Player killed 1 player and has died 3 times the kill death ratio would be 1.00) (it should add the .00) Max time: tomorrow This plugin must be done tomorrow Just reply starting it as a new Main.php file from start.
Feel free to take look through this old (crappy) plugin I wrote over a year ago. https://github.com/JackNoordhuis/PocketMine-MP-Plugins/tree/master/PvP-Stats
#Advertising... I've been working on a plugin to keep track of these things. You can see the KDA with /stats because it tracks assists as well. The formula to calculate KDA is (kills + assists) / deaths. https://github.com/BlockHorizons/KillCounter