menu
#4550375 Class 'pocketmine\scheduler\PluginTask' not found

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-26 18:41:07 +0000 UTC

System Information

PHP version: 7.3.22
Operating system: linux
System banner: Linux 8b2dcd29-bfc3-4fdc-a4a2-a64b5f82769f 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Class 'pocketmine\scheduler\PluginTask' not found
File: plugins/Magnata_v2.phar/src/DanielYTK/Magnata/Main
Line: #31
Error level: Error
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
		@mkdir($this->getDataFolder());
$this->config = new Config($this->getDataFolder()."config.yml", Config::YAML, [
"tag" => "§2[$] §f{PLAYER}",
]);
$this->config->save();
$this->getServer()->getScheduler()->scheduleRepeatingTask(new Task($this), 20*60*5);
}
}

class Task extends PluginTask{
public $plugin, $mag, $s = 0;
public function __construct($plugin){
parent::__construct($plugin);
$this->plugin = $plugin;
}
public function onRun($ticks){
if($this->s === 0){
$this->s = 1;
$this->mag = "0";
return;
#0 vendor/pocketmine/classloader/src/BaseClassLoader(138): include()
#1 vendor/pocketmine/classloader/src/BaseClassLoader(124): BaseClassLoader->loadClass(string[22] DanielYTK\Magnata\Main)
#2 (): BaseClassLoader->{closure}(string[22] DanielYTK\Magnata\Main)
#3 (): spl_autoload_call(string[22] DanielYTK\Magnata\Main)
#4 src/pocketmine/plugin/PluginManager(167): class_exists(string[22] DanielYTK\Magnata\Main, boolean 1)
#5 src/pocketmine/plugin/PluginManager(346): pocketmine\plugin\PluginManager->loadPlugin(string[39] /home/container/plugins/Magnata_v2.phar, array[2])
#6 src/pocketmine/Server(1531): pocketmine\plugin\PluginManager->loadPlugins(string[24] /home/container/plugins/)
#7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#8 src/pocketmine/PocketMine(304): pocketmine\server()
#9 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies