Add a plugin
into your plugin is very simple, just follow the following steps:
Note: pmmpStats use Poggit API so if your plugin is not on poggit you can't use our service!
1 - Create the
pmmpStats folder inside your plugin
2 - Upload the pmmpStats core files
You can find these files here
REMEMBER TO EDIT THE NAMESPACE!
3 - Add the task to the main file of the plugin
By adding this code:
REMEMBER TO IMPORT THE CLASS!
$this->getScheduler()->scheduleRepeatingTask(new pmmpStatsTask($this), 120*20);
4 - Wait and see the statistics
Within a few minutes, statistics should be generated, and you can see them on the page