menu
#5777545 Undefined array key 2

Submitted by PocketMine-MP 4.0.6

General information

Version: 4.0.6
Git commit: f7d25f25
Plugin involvement: Direct
Report date: 2022-01-14 23:49:22 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 27 seconds

System Information

PHP version: 8.0.13
Operating system: win
System banner: Windows NT DESKTOP-FNP8K1D 10.0 build 22000 (Windows 10) AMD64

Error information

Warning: the NaviCompass plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key 2
File: plugins/NaviCompass.phar/src/Xenophilicy/NaviCompass/NaviCompass
Line: #296
Error level: ErrorException
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
                        $subtext = str_replace("{max-players}", "-", $subtext);
}
if (isset($value[4])) {
$search = $value[4];
$file = $value[5];
}
break;
case "int":
$subtext = self::$settings["UI"]["Subtext"]["World"];
$this->getServer()->getWorldManager()->loadWorld($value[2]);
$level = $this->getServer()->getWorldManager()->getWorldByName($value[2]);
if (is_null($level)) {
$worldPlayerCount = 0;
} else {
$worldPlayerCount = sizeof($level->getPlayers());
}
$subtext = str_replace("{current-players}", (string)$worldPlayerCount, $subtext);
if (isset($value[3])) {
$search = $value[3];
$file = $value[4];
#0 plugins/NaviCompass.phar/src/Xenophilicy/NaviCompass/NaviCompass(296): pocketmine\errorhandler\ErrorToExceptionHandler::handle(integer 2, string[21] Undefined array key 2, string[112] phar://C:/Users/schmi/Desktop/pocketmine mp/plugins/NaviCompass.phar/src/Xenophi, integer 296)
#1 plugins/NaviCompass.phar/src/Xenophilicy/NaviCompass/NaviCompass(398): Xenophilicy\NaviCompass\NaviCompass->serverList(object pocketmine\player\Player#25645)
#2 pmsrc/src/event/RegisteredListener(75): Xenophilicy\NaviCompass\NaviCompass->onInteract(object pocketmine\event\player\PlayerInteractEvent#116384)
#3 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerInteractEvent#116384)
#4 pmsrc/src/world/World(1807): pocketmine\event\Event->call()
#5 pmsrc/src/player/Player(1616): pocketmine\world\World->useItemOn(object pocketmine\math\Vector3#96476, object pocketmine\item\Compass#116948, integer 1, object pocketmine\math\Vector3#96472, object pocketmine\player\Player#25645, true)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(370): pocketmine\player\Player->interactBlock(object pocketmine\math\Vector3#96476, integer 1, object pocketmine\math\Vector3#96472)
#7 pmsrc/src/network/mcpe/handler/InGamePacketHandler(231): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#93451)
#8 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(114): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#93431)
#9 pmsrc/src/network/mcpe/NetworkSession(395): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#92421)
#10 pmsrc/src/network/mcpe/NetworkSession(358): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#93431, string[164] .......F...........v.........display...Lore.........bClick for Servers...Name...)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[158] [.(.................e..3r10p.3.d...$Vr.0....r.dE..-Or..L.VH./R.N-*K-*.`a.K.M..J.)
#12 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[167] ..cm.....&C.j.`y...cS.t....O...d.7..=...6. .KE./3y.S......Fm......W..<.hPWB.`...)
#13 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#24144)
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#16 pmsrc/src/Server(1657): pocketmine\snooze\SleeperHandler->sleepUntil(double 1642204162.8807)
#17 pmsrc/src/Server(1044): pocketmine\Server->tickProcessor()
#18 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[37] C:\Users\schmi\Desktop\pocketmine mp\, string[45] C:\Users\schmi\Desktop\pocketmine mp\plugins\)
#19 pmsrc/src/PocketMine(326): pocketmine\server()
#20 pmsrc(11): require(string[81] phar://C:/Users/schmi/Desktop/pocketmine mp/PocketMine-MP.phar/src/PocketMine.ph)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show