menu
#4873712 Call to undefined method pocketmine\item\Sword::write()

Submitted by PocketMine-MP 3.19.0

General information

Version: 3.19.0
Git commit: b307cd0a
Plugin involvement: Indirect
Report date: 2021-04-07 20:59:01 +0000 UTC
Server uptime: 0 days 0 hours 16 minutes 6 seconds

System Information

PHP version: 7.4.16
Operating system: linux
System banner: Linux a49ab4f3-5b85-47d9-86d9-b832c5b7d20b 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64

Error information

Warning: the PureEntitiesX plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: Call to undefined method pocketmine\item\Sword::write()
File: pmsrc/src/pocketmine/network/mcpe/protocol/MobEquipmentPacket
Line: #55
Error level: Error
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
		$this->entityRuntimeId = $this->getEntityRuntimeId();
$this->item = ItemStackWrapper::read($this);
$this->inventorySlot = (\ord($this->get(1)));
$this->hotbarSlot = (\ord($this->get(1)));
$this->windowId = (\ord($this->get(1)));
}

protected function encodePayload(){
$this->putEntityRuntimeId($this->entityRuntimeId);
$this->item->write($this);
($this->buffer .= \chr($this->inventorySlot));
($this->buffer .= \chr($this->hotbarSlot));
($this->buffer .= \chr($this->windowId));
}

public function handle(NetworkSession $session) : bool{
return $session->handleMobEquipment($this);
}
}
#0 pmsrc/src/pocketmine/network/mcpe/protocol/DataPacket(127): pocketmine\network\mcpe\protocol\MobEquipmentPacket->encodePayload()
#1 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(244): pocketmine\network\mcpe\protocol\DataPacket->encode()
#2 pmsrc/src/pocketmine/Player(3359): pocketmine\network\mcpe\RakLibInterface->putPacket(object pocketmine\Player, object pocketmine\network\mcpe\protocol\MobEquipmentPacket, boolean , boolean )
#3 pmsrc/src/pocketmine/Player(3376): pocketmine\Player->sendDataPacket(object pocketmine\network\mcpe\protocol\MobEquipmentPacket, boolean , boolean )
#4 plugins/PureEntitiesX(1).phar/src/revivalpmmp/pureentities/components/MobEquipment(645): pocketmine\Player->dataPacket(object pocketmine\network\mcpe\protocol\MobEquipmentPacket)
#5 plugins/PureEntitiesX(1).phar/src/revivalpmmp/pureentities/components/MobEquipment(619): revivalpmmp\pureentities\components\MobEquipment->sendPacketToPlayers(object pocketmine\network\mcpe\protocol\MobEquipmentPacket)
#6 plugins/PureEntitiesX(1).phar/src/revivalpmmp/pureentities/components/MobEquipment(187): revivalpmmp\pureentities\components\MobEquipment->sendHandItemsToAllClients()
#7 plugins/PureEntitiesX(1).phar/src/revivalpmmp/pureentities/utils/MobEquipper(74): revivalpmmp\pureentities\components\MobEquipment->setMainHand(object pocketmine\item\Sword)
#8 plugins/PureEntitiesX(1).phar/src/revivalpmmp/pureentities/PureEntities(285): revivalpmmp\pureentities\utils\MobEquipper::equipMob(object revivalpmmp\pureentities\entity\monster\walking\Zombie)
#9 plugins/PureEntitiesX(1).phar/src/revivalpmmp/pureentities/task/AutoSpawnTask(229): revivalpmmp\pureentities\PureEntities->scheduleCreatureSpawn(object pocketmine\level\Position, integer 32, object pocketmine\level\Level, string[7] hostile, boolean )
#10 plugins/PureEntitiesX(1).phar/src/revivalpmmp/pureentities/task/AutoSpawnTask(290): revivalpmmp\pureentities\task\AutoSpawnTask->spawnPackToLevel(object pocketmine\math\Vector3, integer 32, object pocketmine\level\Level, string[7] hostile)
#11 plugins/PureEntitiesX(1).phar/src/revivalpmmp/pureentities/task/AutoSpawnTask(116): revivalpmmp\pureentities\task\AutoSpawnTask->spawnHostileMob(object pocketmine\level\format\Chunk, object pocketmine\level\Level)
#12 pmsrc/src/pocketmine/scheduler/TaskHandler(137): revivalpmmp\pureentities\task\AutoSpawnTask->onRun(integer 19201)
#13 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 19201)
#14 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 19201)
#15 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 19201)
#16 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#17 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#18 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#19 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#20 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#21 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show