menu
#7863848 Undefined array key "playerName"

Submitted by PocketMine-MP 4.10.0

General information

Version: 4.10.0
Git commit: 0d5287bf
Plugin involvement: Direct
Report date: 2022-11-24 19:46:20 +0000 UTC
Server uptime: 0 days 3 hours 1 minutes 53 seconds

System Information

PHP version: 8.0.24
JIT status: Disabled
Operating system: linux
System banner: Linux c97d4221-2dc4-4880-bbcb-3328c58268cb 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 x86_64

Error information

Warning: the BanComponents plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key "playerName"
File: plugins/BanComponents_v1.2.2.phar/src/rxduz/ban/listeners/BanListener
Line: #41
Error level: ErrorException
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
		if(Main::getInstance()->getBanManager()->isBanned($player->getName())){
$data = Main::getInstance()->getBanManager()->getDataByPlayer($player->getName());

$message = TextFormat::colorize(str_replace(["{bannedBy}", "{reason}", "{date}", "{time}"], [$data["bannedBy"], $data["reason"], $data["date"], Utils::expiredToString($data["time"])], Main::getInstance()->getTranslatorManager()->getMessages()["PLAYER_KICK_TEMPORARILY_BANNED"]));

if($data["permanent"]){
$message = TextFormat::colorize(str_replace(["{bannedBy}", "{reason}", "{date}"], [$data["bannedBy"], $data["reason"], $data["date"]], Main::getInstance()->getTranslatorManager()->getMessages()["PLAYER_KICK_PERMANENTLY_BANNED"]));
}

Utils::banNotify($data["playerName"], $data["reason"]);

$ev->setKickMessage(
$message
);
$ev->cancel();
}
}

/**
* @param PlayerQuitEvent $ev
#0 plugins/BanComponents_v1.2.2.phar/src/rxduz/ban/listeners/BanListener(41): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[32] Undefined array key "playerName", string[96] phar:///home/container/plugins/BanComponents_v1.2.2.phar/src/rxduz/ban/listeners, int 41)
#1 pmsrc/src/event/RegisteredListener(60): rxduz\ban\listeners\BanListener->onLogin(object pocketmine\event\player\PlayerLoginEvent#859898)
#2 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerLoginEvent#859898)
#3 pmsrc/src/Server(1713): pocketmine\event\Event->call()
#4 pmsrc/src/network/mcpe/NetworkSession(251): pocketmine\Server->addOnlinePlayer(object rxduz\knockback\player\PvPCPlayer#280590)
#5 pmsrc/src/promise/Promise(45): pocketmine\network\mcpe\NetworkSession->onPlayerCreated(object rxduz\knockback\player\PvPCPlayer#280590)
#6 pmsrc/src/network/mcpe/NetworkSession(242): pocketmine\promise\Promise->onCompletion(object Closure#411454, object Closure#197418)
#7 pmsrc/src/network/mcpe/NetworkSession(711): pocketmine\network\mcpe\NetworkSession->createPlayer()
#8 pmsrc/src/network/mcpe/handler/ResourcePacksPacketHandler(132): pocketmine\network\mcpe\NetworkSession->pocketmine\network\mcpe\{closure}()
#9 pmsrc/vendor/pocketmine/bedrock-protocol/src/ResourcePackClientResponsePacket(61): pocketmine\network\mcpe\handler\ResourcePacksPacketHandler->handleResourcePackClientResponse(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket#563615)
#10 pmsrc/src/network/mcpe/NetworkSession(410): pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket->handle(object pocketmine\network\mcpe\handler\ResourcePacksPacketHandler#546371)
#11 pmsrc/src/network/mcpe/NetworkSession(373): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket#563615, string[4] ....)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[7] c.`a`..)
#13 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 39, string[16] .a.S.J/....7.}%.)
#14 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#32100)
#15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#17 pmsrc/src/Server(1707): pocketmine\snooze\SleeperHandler->sleepUntil(float 1669319180.4482)
#18 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#19 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#20 pmsrc/src/PocketMine(328): pocketmine\server()
#21 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show