menu
#5776932 Class "nexusmc\protocol\types\language\LanguageManager" not found

Submitted by PocketMine-MP 4.0.6

General information

Version: 4.0.6
Git commit: f7d25f25
Plugin involvement: Direct
Report date: 2022-01-14 21:06:33 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 19 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: Class "nexusmc\protocol\types\language\LanguageManager" not found
File: plugins/Bridge_v1.0.phar/src/nexusmc/protocol/types/language/Language
Line: #100
Error level: Error
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
	/**
* Function translate
* @param string $key
* @param array|null $values
* @return string
*/
public function translate(string $key, ?array $values = []): string{
$key = str_replace("%", "", $key);
if (!isset($this->cache["values"][$key])) {
if (LanguageManager::getInstance()->getLanguage()->isKey($key)) {
return LanguageManager::getInstance()->getLanguage()->translate($key, $values);
}
return $key;
}
$res = $this->cache["values"][$key];
if (!empty($values)) {
preg_match_all("/{(\d+)}/", $res, $matches, PREG_OFFSET_CAPTURE);
foreach ($matches[1] as $_ => $match) {
$rkey = ((int)$match[0]);
$res = str_replace("{" . $rkey . "}", strval($values[$rkey]) ?? "\${$rkey}", $res);
#0 plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/player/traits/LanguagePlayerTrait(67): nexusmc\protocol\types\language\Language->translate(string[25] message.missingPermission, array[0])
#1 plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/player/traits/LanguagePlayerTrait(98): xxAROX\Bridge\player\BridgePlayer->translate(string[26] %message.missingPermission, array[0])
#2 plugins/Core_v1.0.phar/src/xxAROX/Core/command/BaseCommand(110): xxAROX\Bridge\player\BridgePlayer->sendMessage(string[26] %message.missingPermission)
#3 plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/command/PlayerInfoCommand(38): xxAROX\Core\command\BaseCommand->testPermission(object xxAROX\Core\player\CorePlayer#25256)
#4 plugins/Core_v1.0.phar/src/xxAROX/Core/command/BaseCommand(225): xxAROX\Bridge\command\PlayerInfoCommand->onRun(object xxAROX\Core\player\CorePlayer#25256, string[2] pi, array[0])
#5 pmsrc/src/command/SimpleCommandMap(220): xxAROX\Core\command\BaseCommand->execute(object xxAROX\Core\player\CorePlayer#25256, string[2] pi, array[0])
#6 pmsrc/src/Server(1406): pocketmine\command\SimpleCommandMap->dispatch(object xxAROX\Core\player\CorePlayer#25256, string[2] pi)
#7 plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/player/traits/GroupPlayerTrait(261): pocketmine\Server->dispatchCommand(object xxAROX\Core\player\CorePlayer#25256, string[2] pi)
#8 pmsrc/src/network/mcpe/handler/InGamePacketHandler(711): xxAROX\Bridge\player\BridgePlayer->chat(string[3] /pi)
#9 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(60): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#92235)
#10 pmsrc/src/network/mcpe/NetworkSession(395): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#94069)
#11 pmsrc/src/network/mcpe/NetworkSession(358): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#92235, string[24] M./[email protected]*].|l[....)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[27] ..e./.dpp..r`..9.X.....{...)
#13 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[36] [email protected],)
#14 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#23819)
#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(1657): pocketmine\snooze\SleeperHandler->sleepUntil(double 1642194393.437)
#18 pmsrc/src/Server(1044): pocketmine\Server->tickProcessor()
#19 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/)
#20 pmsrc/src/PocketMine(326): pocketmine\server()
#21 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