Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.15 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.15 KB

CPS Banner

CPS

License Poggit
GitHub license Poggit-CI

A simple plugin which checks the clicks of a player per second. With in-built support for ScoreHud version 6.0+.

Available Tags:

Tag Description
{cps.cps} Shows the cps of the player on ScoreHud

API

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.

Credits

DaPigGuy for most of the code.