menu
#7863503 Undefined array key 1

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:11:36 +0000 UTC
Server uptime: 0 days 0 hours 12 minutes 15 seconds

System Information

PHP version: 8.0.24
JIT status: Disabled
Operating system: linux
System banner: Linux ip-172-31-82-132 5.10.0-19-cloud-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64

Error information

Warning: the PrivateRegionsPrototype plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key 1
File: plugins/PrivateRegionsPrototype.phar/src/PrivateRegionsPrototype/Main
Line: #175
Error level: ErrorException
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
                        }
}elseif( $args[2] == " " ){

$sender->sendMessage("§l§7[§4!§7]§r§8 Введите ник игрока правильно!");

}else{
$sender->sendMessage("§l§7[§4!§7]§r§8 Вы не владеете регионом §c$args[1]");
}

}elseif($args[1] == "members" && count($args) == 2){

$array_reg = scandir($path);
unset($array_reg[0]);unset($array_reg[1]);
$badk=array_search("shablon.json",$array_reg);$badk2=array_search("tmp.json",$array_reg);
unset($array_reg[$badk]);unset($array_reg[$badk2]);
sort($array_reg);

if(in_array($args[1],$array_reg)){
$this->cur_rg = new Config($this->getDataFolder()."$PlayerDir/$args[1]",Config::JSON);
$list = $this->cur_rg->get("members");
#0 plugins/PrivateRegionsPrototype.phar/src/PrivateRegionsPrototype/Main(175): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[21] Undefined array key 1, string[106] phar:///home/admin/serikworld_PM/plugins/PrivateRegionsPrototype.phar/src/Privat, int 175)
#1 pmsrc/src/command/PluginCommand(50): PrivateRegionsPrototype\Main->onCommand(object pocketmine\player\Player#26644, object pocketmine\command\PluginCommand#22128, string[2] rg, array[1])
#2 pmsrc/src/command/SimpleCommandMap(205): pocketmine\command\PluginCommand->execute(object pocketmine\player\Player#26644, string[2] rg, array[1])
#3 pmsrc/src/Server(1448): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#26644, string[9] rg member)
#4 pmsrc/src/player/Player(1437): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#26644, string[9] rg member)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(754): pocketmine\player\Player->chat(string[10] /rg member)
#6 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#131391)
#7 pmsrc/src/network/mcpe/NetworkSession(410): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#117722)
#8 pmsrc/src/network/mcpe/NetworkSession(373): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#131391, string[31] M./rg member..E.q.a..c}.Qj.....)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[77] ..../JW.M.MJ-b.....!.Mcr-C`......L&0Z....0!....}Gv..w~`..... q.F&... ....{A4.)
#10 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[86] [email protected]|..G.g611...$...........z.I.Zx.J5.o...>C[...d.W4p.-%.)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#25054)
#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 1669313496.5388)
#15 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#16 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[26] /home/admin/serikworld_PM/, string[34] /home/admin/serikworld_PM/plugins/)
#17 pmsrc/src/PocketMine(328): pocketmine\server()
#18 pmsrc(11): require(string[70] phar:///home/admin/serikworld_PM/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show