HitCount | License | Poggit | Release |
---|---|---|---|
CPS provides a simple API for developers wishing to use this plugin.
- First you need to get hold of the plugin. You can do so by:
$cps = Server::getInstance()->getPluginManager()->getPlugin("CPS");
if($cps instanceof \JackMD\CPS\CPS){
//do whatever
}
- Then you can get the click of a player via:
/** @var pocketmine\Player $player */
$clicks = $cps->getClicks($player);
- You can take a look at CPS for more info.
DaPigGuy for most of the code.