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

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 03:58:54 +0000 UTC
Server uptime: 0 days 0 hours 5 minutes 27 seconds

System Information

PHP version: 7.4.21
Operating system: linux
System banner: Linux a63652da-d17c-4159-8ff6-23ecdaa003e6 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:21:19 UTC 2021 x86_64

Error information

Warning: the SkyWarsMR 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/SkyWarsMR_fernanACM.phar/src/MikeRangel/SkyWars/PluginUtils
Line: #254
Error level: ErrorException
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
                    SkyWars::$data['skins'][$player->getName()] = $player->getSkin();
SkyWars::$data['damager'][$player->getName()] = 'string';
SkyWars::$data['kills'][Arena::getName('SW-' . $id)][$player->getName()] = 0;
$player->getInventory()->clearAll();
$player->getArmorInventory()->clearAll();
$player->sendMessage(TextFormat::GREEN . TextFormat::BOLD . 'ยป ' . TextFormat::RESET . TextFormat::GREEN . 'An available game has been found: ' . 'SW-' . $id);
$config = SkyWars::getConfigs('Arenas/' . 'SW-' . $id);
$lobby = $config->get('lobby');
$player->teleport(Server::getInstance()->getLevelByName(Arena::getName('SW-' . $id))->getSpawnLocation());
$player->teleport(new Vector3($lobby[0], $lobby[1], $lobby[2]));
$player->setAllowFlight(false);
$player->setFlying(false);
$player->removeAllEffects();
$player->setGamemode(2);
$player->setHealth(20);
$player->setFood(20);
$player->setScale(1);
foreach ($world->getPlayers() as $players) {
$players_array[] = $players->getName();
}
#0 plugins/SkyWarsMR_fernanACM.phar/src/MikeRangel/SkyWars/PluginUtils(254): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[51] Trying to access array offset on value of type bool, string[94] phar:///home/container/plugins/SkyWarsMR_fernanACM.phar/src/MikeRangel/SkyWars/P, integer 254, array[5])
#1 plugins/SkyWarsMR_fernanACM.phar/src/MikeRangel/SkyWars/Tasks/ArenaID(48): MikeRangel\SkyWars\PluginUtils::joinSolo(object pocketmine\Player, integer 1)
#2 pmsrc/src/pocketmine/scheduler/TaskHandler(137): MikeRangel\SkyWars\Tasks\ArenaID->onRun(integer 6517)
#3 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 6517)
#4 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 6517)
#5 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 6517)
#6 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#7 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#8 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#9 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#10 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#11 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show