menu
#26 Typed static property corndan\GoCore\handler\CreativeHandler::$instance must not be accessed before initialization

Submitted by PocketMine-MP 5.7.1+dev

General information

Version: 5.7.1+dev
Git commit: 7a8f3548
Plugin involvement: Direct
Report date: 2023-12-20 20:47:33 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 5 seconds

System Information

PHP version: 8.2.9
JIT status: Not available
Operating system: linux
System banner: Linux ananasmine.ru 5.15.0-87-generic #97-Ubuntu SMP Mon Oct 2 21:09:21 UTC 2023 x86_64

Error information

Warning: the GoEditor plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Typed static property corndan\GoCore\handler\CreativeHandler::$instance must not be accessed before initialization
File: plugins/GoEditor/src/corndan/GoEditor/EditorMain
Line: #50
Type: Error
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60

$this->getServer()->getPluginManager()->registerEvents($this, $this);

$config = new Config(FileSystem::config("editor.yml"), Config::YAML);
// ['blocks' => $blocks, 'states' => self::$states] = json_decode(file_get_contents(FileSystem::DATA . "state-to-meta.json"), true);
foreach ($config->get("limits", []) as $perm => $limit) {
self::$limits[$perm] = $limit;
}

foreach (CreativeHandler::$instance->getItemList(GameMode::CREATIVE()) as $itemId) {
if (in_array($itemId, $config->get("banned_blocks", []), true)) {
continue;
}
self::$allowedBlocks[StringToItemParser::getInstance()->parse($itemId)->getBlock()->getTypeId()] = true;
}
}

/**
* @priority MONITOR
*/
#0 pmsrc/src/plugin/PluginBase(119): corndan\GoEditor\EditorMain->onEnable()
#1 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#2 pmsrc/src/Server(1421): pocketmine\plugin\PluginManager->enablePlugin(object corndan\GoEditor\EditorMain#427919)
#3 pmsrc/src/Server(1065): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#46205)
#4 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[23] /home/anpm5/servers/s1/, string[31] /home/anpm5/servers/s1/plugins/)
#5 pmsrc/src/PocketMine(357): pocketmine\server()
#6 pmsrc(11): require(string[64] phar:///home/anpm5/startup/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show