menu
#33 Call to a member function getTypeId() on null

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-21 15:10:16 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 7 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 GoCore plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to a member function getTypeId() on null
File: plugins/GoCore/src/corndan/GoCore/handler/CreativeHandler
Line: #78
Type: Error
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88

$config = (new Config(FileSystem::config("items.yml")))->getAll();

foreach ($config['all'] as $name) {
$item = StringToItemParser::getInstance()->parse($name)->getTypeId();
$this->allowed[$item] = $name;
}

foreach ($config['survival'] as $name) {
$item = StringToItemParser::getInstance()->parse($name)->getTypeId();
$this->survivalOnly[$item] = $name;
}

// foreach (VanillaBlocks::getAll() as $item) {
// self::$ACCEPT_BLOCKS[$item->asItem()->getTypeId()] = $item->asItem()->getTypeId();
// }
//
// foreach (VanillaItems::getAll() as $item) {
// self::$ACCEPT_BLOCKS[$item->getTypeId()] = $item->getTypeId();
// }
#0 plugins/GoCore/src/corndan/GoCore/CoreMain(258): corndan\GoCore\handler\CreativeHandler->__construct(object corndan\GoCore\CoreMain#433441)
#1 pmsrc/src/plugin/PluginBase(119): corndan\GoCore\CoreMain->onEnable()
#2 pmsrc/src/plugin/PluginManager(456): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1421): pocketmine\plugin\PluginManager->enablePlugin(object corndan\GoCore\CoreMain#433441)
#4 pmsrc/src/Server(1065): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#48233)
#5 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/)
#6 pmsrc/src/PocketMine(357): pocketmine\server()
#7 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