menu
#5776920 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 21:03:42 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 24 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/BridgePlayer
Line: #114
Error level: Error
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
	public function loadData(LoadPlayerPacket $packet): void{
/** @var CorePlayer $this */
$data = $packet->data;
$this->cloudId = $data->id;
$this->last_seen = $data->last_seen != -1 ? $data->last_seen : time();
$this->online_time = $data->online_time != -1 ? $data->online_time : 0;
$this->CoinTrait_loadData($packet);
$this->GroupTrait_loadData($packet);
$this->LanguageTrait_loadData($packet);
$this->playerSettings = PlayerServerSettings::fromArray($data["player_settings"] ?? []);
$this->locker = new PlayerLocker($data["locker"] ?? []);
//$this->sendMessage(implode(PHP_EOL, ImageUtils::skinToChat($this->legacySkin->getSkinData())));
$this->setCoords($this->playerSettings->show_coordinates);
}

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