I want to get the kill and death of a player from KillRate plugin PHP: $kr= $this->getServer()->getPluginManager()->getPlugin("KillRate");$score = $kr->getScore($player);$kill = ?$death = ?
Try this: (Edited) PHP: $kr= $this->getServer()->getPluginManager()->getPlugin("KillRate");$score = $kr->dbm->getScores($player);foreach($score as $scores){$kill = $scores['kills'];$death = $scores['deaths'];}
I got this error XD Could not pass event 'pocketmine\event\server\DataPacketReceiveEvent' to 'FormAPI v1.0.0': Cannot access protected property aliuly\killrate\Main::$dbm on jojoe77777\FormAPI\FormAPI 2017-10-19 [20:08:57] [Server thread/CRITICAL]: Error: "Cannot access protected property aliuly\killrate\Main::$dbm" (EXCEPTION) in "myzip://PHCUI.zip#PHCUI/src/PHCUI/Main" at line 110