menu
#7863141 Undefined array key 2

Submitted by PocketMine-MP 4.10.1

General information

Version: 4.10.1
Git commit: a39938e6
Plugin involvement: Direct
Report date: 2022-11-24 16:33:55 +0000 UTC
Server uptime: 0 days 21 hours 25 minutes 27 seconds

System Information

PHP version: 8.0.24
JIT status: Disabled
Operating system: linux
System banner: Linux c0d51bbc-d9c9-49b4-b0d4-0313771f8625 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64

Error information

Warning: the BedWarsUltimate plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key 2
File: plugins/BedWarsUltimate_dev-13 (1).phar/src/BedWars/command/DefaultCommand
Line: #230
Error level: ErrorException
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
					return;
}

$game_id = $args[1];
if(!$this->getPlugin()->gameExists($game_id)){
$sender->sendMessage(TextFormat::RED . $game_id . " - Invalid game id");
return;
}

$team = strtolower($args[2]);
if(!isset(BedWars::TEAMS[$team])){
$sender->sendMessage(TextFormat::RED . $team . " - Invalid team");
$sender->sendMessage(TextFormat::RED . "Available: " . implode(" ", array_keys(BedWars::TEAMS)));
return;
}

$this->getPlugin()->addTeam($game_id, $team);
$sender->sendMessage(TextFormat::GREEN . "Team added!");
break;

#0 plugins/BedWarsUltimate_dev-13 (1).phar/src/BedWars/command/DefaultCommand(230): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[21] Undefined array key 2, string[101] phar:///home/container/plugins/BedWarsUltimate_dev-13 (1).phar/src/BedWars/comma, int 230)
#1 pmsrc/src/command/SimpleCommandMap(205): BedWars\command\DefaultCommand->execute(object ColinHDev\ActualAntiXRay\player\Player#1262745, string[2] bw, array[2])
#2 pmsrc/src/Server(1448): pocketmine\command\SimpleCommandMap->dispatch(object ColinHDev\ActualAntiXRay\player\Player#1262745, string[12] bw addteam 2)
#3 pmsrc/src/player/Player(1437): pocketmine\Server->dispatchCommand(object ColinHDev\ActualAntiXRay\player\Player#1262745, string[12] bw addteam 2)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(754): pocketmine\player\Player->chat(string[13] /bw addteam 2)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#1258145)
#6 pmsrc/src/network/mcpe/NetworkSession(410): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#1282208)
#7 pmsrc/src/network/mcpe/NetworkSession(373): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#1258145, string[34] M./bw addteam 2..H.B.1.{C2.6r.....)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[37] S...O*WHLI)IM.U0b...u.l.........s#...)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 2, string[46] ...Z..{.Hl7.p|.P...7...X...H:."...qC\h..`..K3.)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#645)
#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 1669307635.586)
#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