menu
#2581052 Class Clik\OrionTasks\Main contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (pocketmine\scheduler\Task::onRun)

Submitted by PocketMine-MP 3.8.6

General information

Version: 3.8.6
Git commit: 1bfd6f2a
Plugin involvement: Direct
Report date: 2019-07-11 20:39:07 +0000 UTC

System Information

PHP version: 7.2.13
Operating system: win
System banner: Windows NT DESKTOP-BAKC61P 10.0 build 17134 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Class Clik\OrionTasks\Main contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (pocketmine\scheduler\Task::onRun)
File: plugins/OrionTasks.phar/src/Clik/OrionTasks/Main
Line: #7
Error level: E_ERROR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

namespace Clik\OrionTasks;

use pocketmine\scheduler\Task;

class Main extends Task{

public function onEnable(){
$this->getScheduler()->scheduleRepeatingTask(new ClosureTask(function(int $tick): void{
foreach($this->getServer()->getOnlinePlayers() as $players){
$players->sendMessage("§b§lDiscord§r §f- §ehttps://discord.gg/ECGhkJc");
}
}), 2400);
}
}

Loaded Plugins

  • Show

Server Settings

  • Show