hey I got this CrossOnlineCount plugin and when I run it I get this error: Code: Fatal error: Declaration of jasonwynn10\CrossOnlineCount\UpdateTask::onRun(int $currentTick) must be compatible with pocketmine\scheduler\Task::onRun($currentTick) in C:\Users\Admin\Creative Cloud Files\Desktop\PymePE\OP Duels - PrymePE\plugins\CrossOnlineCount-master\src\jasonwynn10\CrossOnlineCount\UpdateTask.php on line 0 [21:38:09] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump This is the UpdateTask file in the plugin: PHP: <?phpnamespace jasonwynn10\CrossOnlineCount;use pocketmine\scheduler\PluginTask;class UpdateTask extends PluginTask { public function onRun(int $currentTick) { $this->getOwner()->update(); }} How can I fix this?
Fatal error: Declaration of Code: Task::onRun(int $currentTick) must be compatible with Code: Task::onRun($currentTick)
You are using an outdated version of PocketMine. Download the latest one from here: https://jenkins.pmmp.io/... or make your plugin compatible with the build you are on.
read the error Code: Declaration of jasonwynn10\CrossOnlineCount\UpdateTask::onRun(int $currentTick) must be compatible with pocketmine\scheduler\Task::onRun($currentTick)