menu
#5777176 Call to a member function getChatFormat() on null

Submitted by PocketMine-MP 4.0.6

General information

Version: 4.0.6
Git commit: f7d25f25
Plugin involvement: Direct
Report date: 2022-01-14 22:06:49 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 22 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux v3769 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64

Error information

Warning: the Bridge plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getChatFormat() on null
File: plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/player/traits/GroupPlayerTrait
Line: #284
Error level: Error
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
						$this->sendMessage("%message.security.spam");
return false;
}
if (!Utils::filterText($message, $this, true)) {
$ev->cancel();
//$this->sendDebugMessage("You sent an invalid message!");
return false;
}
//TODO: Bad-worlds: https://github.com/stephenmelrose/badwords-php
$format = ($this->nicked ? $this->nicked_group->getChatFormat() : $this->group->getChatFormat());
$format = str_replace("{EMOJI}", ($this->nicked ? $this->nicked_group->getEmoji() : $this->group->getEmoji()), $format);
$format = str_replace("{GROUP}", ($this->nicked ? $this->nicked_group->getName() : $this->group->getName()), $format);
$format = str_replace("{COLOR}", ($this->nicked ? $this->nicked_group->getColor() : $this->group->getColor()), $format);
$format = str_replace("{NAME}", ($this->nicked ? $this->getNickname() : "{%0}"), $format);
$format = str_replace("{PLAYER}", ($this->nicked ? $this->getNickname() : "{%0}"), $format);
$format = str_replace("{MESSAGE}", "{%1}", $format);
$ev->setFormat($format);
if (!$ev->isCancelled()) {
$this->lastChatMessage = $message;
$this->lastChatMessageTimestamp = microtime(true);
#0 pmsrc/src/network/mcpe/handler/InGamePacketHandler(155): xxAROX\Bridge\player\BridgePlayer->chat(string[1] g)
#1 pmsrc/vendor/pocketmine/bedrock-protocol/src/TextPacket(176): pocketmine\network\mcpe\handler\InGamePacketHandler->handleText(object pocketmine\network\mcpe\protocol\TextPacket#91845)
#2 pmsrc/src/network/mcpe/NetworkSession(395): pocketmine\network\mcpe\protocol\TextPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#94153)
#3 pmsrc/src/network/mcpe/NetworkSession(358): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\TextPacket#91845, string[36] ....HackThorsten.g.2535433554415693.)
#4 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[39] S.dd..HL..../*.I.cL.02565166551145.4f..)
#5 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[48] [email protected][email protected]/.E....V".....)
#6 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#23815)
#7 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#8 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#9 pmsrc/src/Server(1657): pocketmine\snooze\SleeperHandler->sleepUntil(double 1642198009.4087)
#10 pmsrc/src/Server(1044): pocketmine\Server->tickProcessor()
#11 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[63] /home/Dev-Cloud/tests/.run/data/.cache/running-servers/lobby-1/, string[71] /home/Dev-Cloud/tests/.run/data/.cache/running-servers/lobby-1/plugins/)
#12 pmsrc/src/PocketMine(326): pocketmine\server()
#13 pmsrc(11): require(string[76] phar:///home/Dev-Cloud/tests/.run/data/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show