https://github.com/ifera-mc/cps
A simple plugin which checks the clicks of a player per second.
https://github.com/ifera-mc/cps
api clicks cps php plugin pmmp pocketmine-mp second
Last synced: 4 months ago
JSON representation
A simple plugin which checks the clicks of a player per second.
- Host: GitHub
- URL: https://github.com/ifera-mc/cps
- Owner: ifera-mc
- License: gpl-3.0
- Created: 2018-12-13T13:58:22.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T00:36:48.000Z (almost 5 years ago)
- Last Synced: 2025-01-30T20:51:42.670Z (about 1 year ago)
- Topics: api, clicks, cps, php, plugin, pmmp, pocketmine-mp, second
- Language: PHP
- Size: 93.8 KB
- Stars: 19
- Watchers: 7
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# CPS
| License | Poggit |
|:--:|:--:|
|[](https://github.com/JackMD/CPS/blob/master/LICENSE)|[](https://poggit.pmmp.io/ci/Ifera/CPS/CPS)|
### 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:
```php
$cps = Server::getInstance()->getPluginManager()->getPlugin("CPS");
if($cps instanceof \JackMD\CPS\CPS){
//do whatever
}
```
- Then you can get the click of a player via:
```php
/** @var pocketmine\Player $player */
$clicks = $cps->getClicks($player);
```
- You can take a look at [CPS](https://github.com/JackMD/CPS/blob/master/src/JackMD/CPS/CPS.php) for more info.
### Credits
[DaPigGuy](https://github.com/DaPigGuy) for most of the code.