menu
#5777183 Cannot assign xxAROX\Bridge\player\Group to property xxAROX\Bridge\player\BridgePlayer::$group_before of type ?xxAROX\Bridge\generic\Group

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:08:19 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 11 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 assign xxAROX\Bridge\player\Group to property xxAROX\Bridge\player\BridgePlayer::$group_before of type ?xxAROX\Bridge\generic\Group
File: plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/player/traits/GroupPlayerTrait
Line: #60
Error level: TypeError
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
	public function loadData(LoadPlayerPacket $packet): void{
/** @var CorePlayer $this */
$data = $packet->data;
if (count($data->permissions ?? []) > 0) {
$this->setPermissions($data->permissions);
}
var_dump("Loaded-Group: " . $data->group);
$this->nicked = $data->nicked ?? false;
$this->group_duration = $data->group_duration ?? 0;
$this->group_before = GroupManager::get()->getGroup($data->group_before ?? "Default");
var_dump(array_keys(GroupManager::get()->getGroups()));
if ($this->nicked) {
//TODO
/*$this->nicked_group = Cache::getInstance()->groups[strtolower($data->nicked_group)];
$this->nick(false, new PlayerNickData($data->nickname, $data->nicked_group, )[
"nickname" => $data->nickname,
"nicked_group" => $data->nicked_group,
"nicked_skin" => $data->nicked_skin,
]);*/
}
#0 plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/player/BridgePlayer(112): xxAROX\Bridge\player\BridgePlayer->GroupTrait_loadData(object nexusmc\protocol\packets\LoadPlayerPacket#25162)
#1 plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/network/BridgePacketHandler(48): xxAROX\Bridge\player\BridgePlayer->loadData(object nexusmc\protocol\packets\LoadPlayerPacket#25162)
#2 plugins/Bridge_v1.0.phar/src/xxAROX/Bridge/task/CleanerTask(113): xxAROX\Bridge\network\BridgePacketHandler->LoadPlayerPacket(object nexusmc\protocol\packets\LoadPlayerPacket#25162)
#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 221)
#6 pmsrc/src/Server(1765): pocketmine\plugin\PluginManager->tickSchedulers(integer 221)
#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