WolfDen133 / WFT

Recoded, added features, removed useless stuff, more efficent code, PER PLAYER TEXT
GNU General Public License v3.0
11 stars 7 forks source link

Bug #16

Closed GamerMJay closed 2 years ago

GamerMJay commented 2 years ago

[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

PSYCHO1512 commented 2 years ago

same here

WolfDen133 commented 2 years ago

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?

GamerMJay commented 2 years ago

I updated my server to 1.18.30 am joined then came server closed is due to the plugin

Tuvqlu commented 2 years ago

Same thing here as well

HomeTreeBE commented 2 years ago

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 );

WolfDen133 commented 2 years ago

Updated and fixed, pushing now