menu
#7034946 Undefined array key 36

Submitted by PocketMine-MP 4.5.1

General information

Version: 4.5.1
Git commit: d641812c
Plugin involvement: Direct
Report date: 2022-06-23 14:27:55 +0000 UTC
Server uptime: 0 days 1 hours 38 minutes 57 seconds

System Information

PHP version: 8.0.17
Operating system: linux
System banner: Linux vmd58751.contaboserver.net 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64

Error information

Warning: the MysteryCrates plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key 36
File: plugins/MysteryCrates.phar/src/MCPEHosting/MysteryCrates/components/Crate
Line: #59
Error level: ErrorException
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
    }

public function isEmpty(): bool
{
return empty($this->items);
}

public function getRandomItem(): Item
{
return $this->items[mt_rand(0, count($this->items) - 1)];
}

public function positionToString(): string
{
return implode(";", [$this->location->getX(), $this->location->getY(), $this->location->getZ(), $this->location->getWorld()->getFolderName()]);
}

public static function fromConfig(string $name, string $positionString, array $serializedItems): Crate
{
$items = [];
#0 plugins/MysteryCrates.phar/src/MCPEHosting/MysteryCrates/components/Crate(59): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[22] Undefined array key 36, string[118] phar:///home/clientservers/server-330256/plugins/MysteryCrates.phar/src/MCPEHost, int 59)
#1 plugins/MysteryCrates.phar/src/MCPEHosting/MysteryCrates/listener/CrateListener(87): MCPEHosting\MysteryCrates\components\Crate->getRandomItem()
#2 pmsrc/src/event/RegisteredListener(60): MCPEHosting\MysteryCrates\listener\CrateListener->onInteract(object pocketmine\event\player\PlayerInteractEvent#139324)
#3 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerInteractEvent#139324)
#4 pmsrc/src/world/World(1792): pocketmine\event\Event->call()
#5 pmsrc/src/player/Player(1683): pocketmine\world\World->useItemOn(object pocketmine\math\Vector3#139014, object pocketmine\item\ItemBlock#126771, int 3, object pocketmine\math\Vector3#130912, object pocketmine\player\Player#115218, true)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(441): pocketmine\player\Player->interactBlock(object pocketmine\math\Vector3#139014, int 3, object pocketmine\math\Vector3#130912)
#7 pmsrc/src/network/mcpe/handler/InGamePacketHandler(299): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#139161)
#8 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(105): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#114906)
#9 pmsrc/src/network/mcpe/NetworkSession(388): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#115122)
#10 pmsrc/src/network/mcpe/NetworkSession(351): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#114906, string[208] .......A......!....\...........crateType..Creeper...display...Lore.....-.With th)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[242] c.a..S..h`q...$~0.1...0.1010.E..........,`.........!.(.$5.. ....(5. ....!%.. '..)
#12 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[251] .{[email protected]=.t...Je...G..."..rtY.*....a.JD...x;l...........a......^..='.I....tG.)
#13 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#116690)
#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(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1655994475.2668)
#17 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#18 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[34] /home/clientservers/server-330256/, string[42] /home/clientservers/server-330256/plugins/)
#19 pmsrc/src/PocketMine(327): pocketmine\server()
#20 pmsrc(11): require(string[68] phar:///home/serversoftwares/PocketMine_1.19.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show