menu
#5776894 Cannot use object of type nexusmc\protocol\types\data\PlayerLoadData as array

Submitted by PocketMine-MP 4.0.6

General information

Version: 4.0.6
Git commit: f7d25f25
Plugin involvement: Direct
Report date: 2022-01-14 20:56:35 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 13 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: Cannot use object of type nexusmc\protocol\types\data\PlayerLoadData as array
File: plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/player/traits/LanguagePlayerTrait
Line: #37
Error level: Error
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
	protected Language $language;

/**
* Function loadData
* @param LoadPlayerPacket $packet
* @return void
*/
public function loadData(LoadPlayerPacket $packet): void{
/** @var CorePlayer $this */
$this->language = LanguageManager::getInstance()->getLanguage($packet->data["language"]);
}

/**
* Function getLang
* @return Language
*/
public function getLang(): Language{
return $this->language;
}

#0 plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/player/BridgePlayer(113): xxAROX\Bridge\player\BridgePlayer->LanguageTrait_loadData(object nexusmc\protocol\packets\LoadPlayerPacket#25187)
#1 plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/network/BridgePacketHandler(36): xxAROX\Bridge\player\BridgePlayer->loadData(object nexusmc\protocol\packets\LoadPlayerPacket#25187)
#2 plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/task/CleanerTask(113): xxAROX\Bridge\network\BridgePacketHandler->LoadPlayerPacket(object nexusmc\protocol\packets\LoadPlayerPacket#25187)
#3 pmsrc/src/scheduler/TaskHandler(117): xxAROX\Bridge\task\CleanerTask->onRun()
#4 pmsrc/src/scheduler/TaskScheduler(141): pocketmine\scheduler\TaskHandler->run()
#5 pmsrc/src/plugin/PluginManager(467): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 245)
#6 pmsrc/src/Server(1765): pocketmine\plugin\PluginManager->tickSchedulers(integer 245)
#7 pmsrc/src/Server(1654): pocketmine\Server->tick()
#8 pmsrc/src/Server(1044): pocketmine\Server->tickProcessor()
#9 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/)
#10 pmsrc/src/PocketMine(326): pocketmine\server()
#11 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