menu
#7556433 Undefined array key 2

Submitted by PocketMine-MP 4.9.0

General information

Version: 4.9.0
Git commit: 785dc712
Plugin involvement: Direct
Report date: 2022-09-22 19:55:07 +0000 UTC
Server uptime: 0 days 0 hours 3 minutes 27 seconds

System Information

PHP version: 8.0.22
JIT status: Not available
Operating system: linux
System banner: Linux 7413559f-cdf2-4c17-beb4-4033e1a56897 5.4.189-2-pve #1 SMP PVE 5.4.189-2 (Mon, 13 Jun 2022 09:39:53 +0200) x86_64

Error information

Warning: the PremiumCase plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key 2
File: plugins/PremiumCase.phar/src/J0k3rrWild/PremiumCase/Commands
Line: #128
Error level: ErrorException
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
                        $item = new Item($ident);
$item->setCount((int)$args[1]);
$item->setCustomName(TF::GOLD."PremiumCase");



$target->getInventory()->addItem($item);


$target->sendMessage(TF::GREEN."[PremiumCase] > You got ".$args[2]." premium cases from ".$p->getName());

}else{
$count++;

$ident = new ItemIdentifier($this->plugin->pandorkaId, 0);
$item = new Item($ident);
$item->setCount((int)$args[1]);
$item->setCustomName(TF::GOLD."PremiumCase");
$target->getInventory()->addItem($item);

#0 plugins/PremiumCase.phar/src/J0k3rrWild/PremiumCase/Commands(128): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[21] Undefined array key 2, string[87] phar:///home/container/plugins/PremiumCase.phar/src/J0k3rrWild/PremiumCase/Comma, int 128)
#1 pmsrc/src/command/SimpleCommandMap(205): J0k3rrWild\PremiumCase\Commands->execute(object ipad54\netherblocks\player\Player#276714, string[2] pc, array[2])
#2 pmsrc/src/Server(1448): pocketmine\command\SimpleCommandMap->dispatch(object ipad54\netherblocks\player\Player#276714, string[13] pc giveall 15)
#3 pmsrc/src/player/Player(1410): pocketmine\Server->dispatchCommand(object ipad54\netherblocks\player\Player#276714, string[13] pc giveall 15)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(754): pocketmine\player\Player->chat(string[14] /pc giveall 15)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#277697)
#6 pmsrc/src/network/mcpe/NetworkSession(409): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#281512)
#7 pmsrc/src/network/mcpe/NetworkSession(372): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#277697, string[35] M./pc giveall 15..L$........!.I1...)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[39] S.../HVH.,KM..Q04e8..rj...?...V..4lf`..)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 1, string[48] .v+.wS...Kgi.....`A......>.g...7...p.!..7m......)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#100698)
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/src/Server(1707): pocketmine\snooze\SleeperHandler->sleepUntil(float 1663876507.9719)
#14 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#16 pmsrc/src/PocketMine(328): pocketmine\server()
#17 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show