menu
#7863663 Undefined array key 3

Submitted by PocketMine-MP 4.10.1

General information

Version: 4.10.1
Git commit: a39938e6
Plugin involvement: Direct
Report date: 2022-11-24 18:58:05 +0000 UTC
Server uptime: 0 days 0 hours 15 minutes 34 seconds

System Information

PHP version: 8.0.24
JIT status: Disabled
Operating system: linux
System banner: Linux c88e2723-d168-49f1-8306-9264af96ee48 5.4.0-124-generic #140-Ubuntu SMP Thu Aug 4 02:23:37 UTC 2022 x86_64

Error information

Warning: the iProtector plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key 3
File: plugins/iProtector_dev-6.phar/src/LDX/iProtector/Main
Line: #252
Error level: ErrorException
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
				break;
case "whitelist":
if($sender->hasPermission("iprotector") || $sender->hasPermission("iprotector.command") || $sender->hasPermission("iprotector.command.area") || $sender->hasPermission("iprotector.command.area.delete")){
if(isset($args[1], $this->areas[strtolower($args[1])])){
$area = $this->areas[strtolower($args[1])];
if(isset($args[2])){
$action = strtolower($args[2]);
switch($action){
case "add":
$w = ($this->getServer()->getPlayerByPrefix($args[3]) instanceof Player ? strtolower($this->getServer()->getPlayerByPrefix($args[3])->getName()) : strtolower($args[3]));
if(!$area->isWhitelisted($w)){
$area->setWhitelisted($w);
$o = TextFormat::GREEN . "Player $w has been whitelisted in area " . $area->getName() . ".";
}else{
$o = TextFormat::RED . "Player $w is already whitelisted in area " . $area->getName() . ".";
}
break;
case "list":
$o = TextFormat::AQUA . "Area " . $area->getName() . "'s whitelist:" . TextFormat::RESET;
foreach($area->getWhitelist() as $w){
#0 plugins/iProtector_dev-6.phar/src/LDX/iProtector/Main(252): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[21] Undefined array key 3, string[80] phar:///home/container/plugins/iProtector_dev-6.phar/src/LDX/iProtector/Main.php, int 252)
#1 pmsrc/src/command/PluginCommand(50): LDX\iProtector\Main->onCommand(object pocketmine\player\Player#28507, object pocketmine\command\PluginCommand#22184, string[4] area, array[3])
#2 pmsrc/src/command/SimpleCommandMap(205): pocketmine\command\PluginCommand->execute(object pocketmine\player\Player#28507, string[4] area, array[3])
#3 pmsrc/src/Server(1448): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#28507, string[24] area whitelist lobby add)
#4 pmsrc/src/player/Player(1437): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#28507, string[24] area whitelist lobby add)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(163): pocketmine\player\Player->chat(string[26] ./area whitelist lobby add)
#6 pmsrc/vendor/pocketmine/bedrock-protocol/src/TextPacket(164): pocketmine\network\mcpe\handler\InGamePacketHandler->handleText(object pocketmine\network\mcpe\protocol\TextPacket#125215)
#7 pmsrc/src/network/mcpe/NetworkSession(410): pocketmine\network\mcpe\protocol\TextPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#101968)
#8 pmsrc/src/network/mcpe/NetworkSession(373): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\TextPacket#125215, string[64] ....Abdo Gaming2608../area whitelist lobby add.2535440375239218.)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[109] s.dd.wLJ.WpO...K723....O,JMT(..,I..,.Q..OJ.THLI.025651106752.42.`0..x..f'..[Na/N)
#10 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[118] .._'.b.`,..7..K..:...z.H..{.;.ca....uA...;#.)T.1I.%#F|K....N..f...b*.....|{cp...)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#26662)
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/src/Server(1707): pocketmine\snooze\SleeperHandler->sleepUntil(float 1669316285.5771)
#15 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#16 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#17 pmsrc/src/PocketMine(328): pocketmine\server()
#18 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show