menu
#217 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

Submitted by PocketMine-MP 5.18.1+dev.2049

General information

Version: 5.18.1+dev.2049
Git commit: 162a4b1d
Plugin involvement: Direct
Report date: 2024-08-27 17:45:10 +0000 UTC
Server uptime: 0 days 0 hours 2 minutes 43 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 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)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show