menu
#9648693 pocketmine\lang\Language::__construct(): Argument #1 ($lang) must be of type string, pocketmine\lang\Language given, called in phar:///home/container/plugins/PvPativo (30).phar/src/PvPativoPlugin/PvPativoPlugin.php on line 39

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Indirect
Report date: 2023-11-21 00:27:05 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 35 seconds

System Information

PHP version: 8.1.25
JIT status: Not available
Operating system: linux
System banner: Linux 047a8892-b8ee-48f8-a2cf-8c0f2228bb13 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64

Error information

Warning: the PvPativoPlugin plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Thread: Main
Message: pocketmine\lang\Language::__construct(): Argument #1 ($lang) must be of type string, pocketmine\lang\Language given, called in phar:///home/container/plugins/PvPativo (30).phar/src/PvPativoPlugin/PvPativoPlugin.php on line 39
File: pmsrc/src/lang/Language
Line: #106
Type: TypeError
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
	/**
* @var string[]
* @phpstan-var array<string, string>
*/
protected array $fallbackLang = [];

/**
* @throws LanguageNotFoundException
*/
public function __construct(string $lang, ?string $path = null, string $fallback = self::FALLBACK_LANGUAGE){
$this->langName = strtolower($lang);

if($path === null){
$path = \pocketmine\LOCALE_DATA_PATH;
}

$this->lang = self::loadLang($path, $this->langName);
$this->fallbackLang = self::loadLang($path, $fallback);
}

#0 plugins/PvPativo (30).phar/src/PvPativoPlugin/PvPativoPlugin(39): pocketmine\lang\Language->__construct(object pocketmine\lang\Language#69)
#1 plugins/PvPativo (30).phar/src/PvPativoPlugin/PvPativoPlugin(26): PvPativoPlugin\PvPativoPlugin->executarComandos()
#2 pmsrc/src/command/PluginCommand(46): PvPativoPlugin\PvPativoPlugin->onCommand(object jkorn\pvpcore\player\PvPCPlayer#146212, object pocketmine\command\PluginCommand#45083, string[9] pvpativar, array[0])
#3 pmsrc/src/command/SimpleCommandMap(212): pocketmine\command\PluginCommand->execute(object jkorn\pvpcore\player\PvPCPlayer#146212, string[9] pvpativar, array[0])
#4 pmsrc/src/Server(1418): pocketmine\command\SimpleCommandMap->dispatch(object jkorn\pvpcore\player\PvPCPlayer#146212, string[9] pvpativar)
#5 pmsrc/src/player/Player(1512): pocketmine\Server->dispatchCommand(object jkorn\pvpcore\player\PvPCPlayer#146212, string[9] pvpativar)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(826): pocketmine\player\Player->chat(string[10] /pvpativar)
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#153017)
#8 pmsrc/src/network/mcpe/NetworkSession(445): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#153128)
#9 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#153017, string[32] M./pvpativar.[D...b0s...97.K...H)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[36] S.../(+H,.,K,b.vY..c.A....,.Wx.e`...)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[45] ....:.7.z.:P..{...#Do.>.7.8......7r..Vl.MH.Y.)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#190406)
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#14 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#16 pmsrc/src/Server(1683): pocketmine\snooze\SleeperHandler->sleepUntil(float 1700526425.9248)
#17 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#18 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#19 pmsrc/src/PocketMine(364): pocketmine\server()
#20 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show