menu
#7304313 Declaration of MLK\mlkPlugin\mlk\mlk::onRun(int $currentTick) must be compatible with pocketmine\scheduler\Task::onRun(): void

Submitted by PocketMine-MP 4.6.1

General information

Version: 4.6.1
Git commit: b20e0453
Plugin involvement: Direct
Report date: 2022-08-05 23:12:44 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.19
Operating system: win
System banner: Windows NT DESKTOP-9T4M2BV 10.0 build 19044 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of MLK\mlkPlugin\mlk\mlk::onRun(int $currentTick) must be compatible with pocketmine\scheduler\Task::onRun(): void
File: plugins/Harfshirt/src/MLK/mlkPlugin/mlk
Line: #129
Error level: E_COMPILE_ERROR
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
    }

}
class mlk extends Task{
private $o;

public function __construct(Island $o){
$this->o = $o;
}
public function onRun(int $currentTick){
foreach($this->o->fly as $name => $null){
if($this->o->getServer()->getPlayer($name) !== null){
$player = $this->o->getServer()->getPlayer($name);
$name = $player->getName();
$level = $player->getLevel();
if(isset($this->o->db[$name]['온'])){
if($this->o->db[$name]['온'] == "off"){

if ($level->getFolderName() === "island") {
$player->setAllowFlight(true);

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show