Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T00:36:48.000Z (over 3 years ago)
- Last Synced: 2024-10-09T23:04:21.148Z (3 months ago)
- Topics: api, clicks, cps, php, plugin, pmmp, pocketmine-mp, second
- Language: PHP
- Size: 93.8 KB
- Stars: 18
- Watchers: 7
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![CPS Banner](https://github.com/JackMD/CPS/blob/master/meta/cps.png)
# CPS| License | Poggit |
|:--:|:--:|
|[![GitHub license](https://img.shields.io/github/license/JackMD/CPS.svg)](https://github.com/JackMD/CPS/blob/master/LICENSE)|[![Poggit-CI](https://poggit.pmmp.io/ci.shield/Ifera/CPS/CPS)](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.