menu
#304 Cannot access offset of type string on string

Submitted by PocketMine-MP 5.26.1+dev.2106

General information

Version: 5.26.1+dev.2106
Git commit: 4d592fdc
Plugin involvement: Direct
Report date: 2025-04-11 01:21:25 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 8.3.4
JIT status: Not available
Operating system: linux
System banner: Linux anmine.ru 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64

Error information

Warning: the GoAutoMine plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Cannot access offset of type string on string
File: plugins/GoAutoMine/src/corndan/automine/AutoMineLoader
Line: #49
Type: TypeError
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
                "name" => "Обычная",
"blocks" => []
]
]);

$types = [];
foreach ($config->get("types") as $name => $data) {
var_dump($data);
$blocks = [];
foreach ($data['blocks'] as $block => $chance) {
$mineBlock = StringToItemParser::getInstance()->parse($block)?->getBlock();
if (!$mineBlock) {
GlobalLogger::get()->error("Блок $block в авто шахте не найден!");
continue;
}
$blocks[] = [$mineBlock, $chance];
}

$types[] = new MineTypeModel($name, $blocks);
}
#0 pmsrc/src/plugin/PluginBase(119): corndan\automine\AutoMineLoader->onEnable()
#1 pmsrc/src/plugin/PluginManager(463): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#2 pmsrc/src/Server(1507): pocketmine\plugin\PluginManager->enablePlugin(object corndan\automine\AutoMineLoader#81587)
#3 pmsrc/src/Server(1124): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#62548)
#4 pmsrc/src/PocketMine(360): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[27] /home/anupdate/servers/s99/, string[35] /home/anupdate/servers/s99/plugins/)
#5 pmsrc/src/PocketMine(383): pocketmine\server()
#6 pmsrc(170): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPhJTlSW.tar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show