menu
#7556762 Trying to access array offset on value of type bool

Submitted by PocketMine-MP 4.9.0

General information

Version: 4.9.0
Git commit: 785dc712
Plugin involvement: Direct
Report date: 2022-09-22 21:54:53 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 8.0.22
JIT status: Disabled
Operating system: linux
System banner: Linux 861bdd76-7e20-4855-85d7-80b88ab2fd95 5.4.0-121-generic #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022 x86_64

Error information

Warning: the TopKills plugin was directly involved in this crash. Please contact the plugin author.
Message: Trying to access array offset on value of type bool
File: plugins/TopKills (1).phar/src/vNiqkz/TopDeathCommand
Line: #22
Error level: ErrorException
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    {
$c = Main::$instance->getConfig();
$data = new Config(Main::$instance->getDataFolder()."deaths.yml", Config::YAML);
$players = $data->getAll(true);
arsort($players);
$array = array_slice($players, 0, 10);
$lines[] = $c->get("deathsTitle");
foreach($array as $info){
if(!$info) return;
$lines[] = str_replace(["&", "{points}", "{player}"], ["", $data->get[$info], $info], $c->get("format"));
}
$sender->sendMessage(join("\n", $lines));
}
}
#0 plugins/TopKills (1).phar/src/vNiqkz/TopDeathCommand(22): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[51] Trying to access array offset on value of type bool, string[79] phar:///home/container/plugins/TopKills (1).phar/src/vNiqkz/TopDeathCommand.php, int 22)
#1 pmsrc/src/command/SimpleCommandMap(205): vNiqkz\TopDeathCommand->execute(object pocketmine\console\ConsoleCommandSender#25703, string[2] td, array[0])
#2 pmsrc/src/Server(1448): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\console\ConsoleCommandSender#25703, string[2] td)
#3 pmsrc/src/Server(1059): pocketmine\Server->dispatchCommand(object pocketmine\console\ConsoleCommandSender#25703, string[2] td)
#4 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#5 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#6 pmsrc/src/Server(1707): pocketmine\snooze\SleeperHandler->sleepUntil(float 1663883693.5371)
#7 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#8 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#9 pmsrc/src/PocketMine(328): pocketmine\server()
#10 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show