menu
#7034049 Undefined array key 99

Submitted by PocketMine-MP 4.5.1

General information

Version: 4.5.1
Git commit: d641812c
Plugin involvement: Direct
Report date: 2022-06-23 09:46:25 +0000 UTC
Server uptime: 0 days 0 hours 3 minutes 8 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux 772f250390a3 5.4.0-100-generic #113-Ubuntu SMP Thu Feb 3 18:43:29 UTC 2022 x86_64

Error information

Warning: the PremiumCase plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key 99
File: plugins/PremiumCase.phar/src/J0k3rrWild/PremiumCase/Main
Line: #123
Error level: ErrorException
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
       
$hand = $player->getInventory()->getItemInHand();
if($hand->getCustomName() === TF::GOLD."PremiumCase"){


$chance = mt_rand(1, 100);



$player->sendMessage("§8[§bPremiumCase§8] §fYou get §8(§b".$this->amountArray[$chance]."§8) §f".$this->nameArray[$chance]);
//Lotto identify
$ident = new ItemIdentifier($this->idArray[$chance], 0);
$item = new Item($ident);
$item->setCount((int)$this->amountArray[$chance]);

//Case identify
$identc = new ItemIdentifier($this->pandorkaId, 0);
$itemc = new Item($identc);
$itemc->setCount(1);

#0 plugins/PremiumCase.phar/src/J0k3rrWild/PremiumCase/Main(123): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[22] Undefined array key 99, string[75] phar:///server/plugins/PremiumCase.phar/src/J0k3rrWild/PremiumCase/Main.php, int 123)
#1 pmsrc/src/event/RegisteredListener(60): J0k3rrWild\PremiumCase\Main->onPlace(object pocketmine\event\block\BlockPlaceEvent#153610)
#2 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\block\BlockPlaceEvent#153610)
#3 pmsrc/src/world/World(1858): pocketmine\event\Event->call()
#4 pmsrc/src/player/Player(1683): pocketmine\world\World->useItemOn(object pocketmine\math\Vector3#153810, object pocketmine\item\ItemBlock#153838, int 1, object pocketmine\math\Vector3#153601, object pocketmine\player\Player#98244, true)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(441): pocketmine\player\Player->interactBlock(object pocketmine\math\Vector3#153810, int 1, object pocketmine\math\Vector3#153601)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(299): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#153706)
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(105): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#153578)
#8 pmsrc/src/network/mcpe/NetworkSession(388): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#139582)
#9 pmsrc/src/network/mcpe/NetworkSession(351): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#153578, string[156] .....[email protected]..........D)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[109] c.ab.Ra..t..t.`b.r.0.101200...e....3r10p.3.d...$Vr.0.%...1.Zn.P...Y...X......1Q`)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[118] .$.|`...-.."O.9v.|."..A(2*N_...............b#[email protected]@b...c...~Z.....W...)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#99196)
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#15 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1655977585.7761)
#16 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[8] /server/, string[16] /server/plugins/)
#18 pmsrc/src/PocketMine(327): pocketmine\server()
#19 pmsrc(11): require(string[45] phar:///server/server.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show