Closed GamerMJay closed 2 years ago
same here
Please use the issue template to provide some more information about this bug, as just with this error I cannot diagnose what is wrong, can I ask how/when this error occored?
I updated my server to 1.18.30 am joined then came server closed is due to the plugin
Same thing here as well
I fixed it,
Just replace this part in text/subtext
$pks[] = AddPlayerPacket::create(
UUID::fromString($this->uuid),
$this->text,
$this->runtime,
$this->runtime,
"",
$this->position->asVector3(),
null,
0,
0,
0,
ItemStackWrapper::legacy(ItemStack::null()),
1,
[
EntityMetadataProperties::FLAGS => new LongMetadataProperty(1 << EntityMetadataFlags::IMMOBILE),
EntityMetadataProperties::SCALE => new FloatMetadataProperty(0)
],
AdventureSettingsPacket::create(0, 0, 0, 0, 0, $this->runtime),
[],
"",
DeviceOS::UNKNOWN
);
Updated and fixed, pushing now
[17:35:30.861] [Server thread/CRITICAL]: TypeError: "pocketmine\network\mcpe\protocol\AddPlayerPacket::create(): Argument #12 ($gameMode) must be of type int, array given, called in phar:///home/minecraft/plugins/WFT.phar/src/WolfDen133/WFT/Texts/SubText.php on line 105" (EXCEPTION) in "pmsrc/vendor/pocketmine/bedrock-protocol/src/AddPlayerPacket" at line 60