Error information
Warning: the GoCore plugin was directly involved in this crash. Please contact the plugin author.
Thread: |
Main |
Message: |
corndan\GoCore\managers\BlockHistoryManager::get(): Argument #1 ($world) must be of type string, pocketmine\world\World given, called in /home/anmine/servers/s99/plugins/GoCore/src/corndan/GoCore/commands/admin/FillChestsCommand.php on line 58 |
File: |
plugins/GoCore/src/corndan/GoCore/managers/BlockHistoryManager |
Line: |
#50 |
Type: |
TypeError |
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
self::$db = new LevelDB("data/blocks.db");
}
public function set(string $world, int $x, int $y, int $z, string $player, int $reason, ?int $time = null): void
{
$time ??= time();
self::$db->put("$world:$x:$y:$z", "$player:$reason:$time");
}
public function get(string $world, int $x, int $y, int $z): ?array
{
$res = self::$db->get("$world:$x:$y:$z");
if ($res === false) {
return null;
}
[$player, $reason, $time] = explode(":", $res);
return [$player, (int)$reason, (int)$time];
}
#0 plugins/GoCore/src/corndan/GoCore/commands/admin/FillChestsCommand(58): corndan\GoCore\managers\BlockHistoryManager->get(object pocketmine\world\World#78281, int -1987, int -39, int -1823)
#1 plugins/GoCore/src/corndan/GoCore/GoCommand(44): corndan\GoCore\commands\admin\FillChestsCommand->onCommand(object pocketmine\console\ConsoleCommandSender#164123, array[0], string[10] fillchests)
#2 pmsrc/src/command/SimpleCommandMap(214): corndan\GoCore\GoCommand->execute(object pocketmine\console\ConsoleCommandSender#164123, string[10] fillchests, array[0])
#3 pmsrc/src/Server(1492): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\console\ConsoleCommandSender#164123, string[10] fillchests)
#4 pmsrc/src/Server(1960): pocketmine\Server->dispatchCommand(object pocketmine\console\ConsoleCommandSender#164123, string[10] fillchests)
#5 pmsrc/src/Server(1800): pocketmine\Server->tick()
#6 pmsrc/src/Server(1117): pocketmine\Server->tickProcessor()
#7 pmsrc/src/PocketMine(355): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[25] /home/anmine/servers/s99/, string[33] /home/anmine/servers/s99/plugins/)
#8 pmsrc/src/PocketMine(378): pocketmine\server()
#9 /home/anmine/startup/PocketMine-MP.phar(168): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPxcfdoA.tar/src/PocketMine.php)