menu
#2580612 Class 'pocketmine\network\protocol\AddEntityPacket' not found

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-07-11 16:59:54 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: win
System banner: Windows NT DESKTOP-NPO10HF 10.0 build 17134 (Windows 10) AMD64

Error information

Warning: the Boss plugin was directly involved in this crash. Please contact the plugin author.
Message: Class 'pocketmine\network\protocol\AddEntityPacket' not found
File: plugins/Boss/src/NawafPlugin/Boss
Line: #261
Error level: Error
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
                if($this->players->getPosition()->distance($this) <= 5 && $this->attack <= 0){
$this->attack = 1;
$ev = new \pocketmine\event\entity\EntityDamageByEntityEvent($this, $this->target, EntityDamageEvent::CAUSE_ENTITY_ATTACK, 4);
$this->players->attack($ev);
}

return $hasUpdate;
}
public function spawnTo(\pocketmine\Player $player) : void{
$pk = new \pocketmine\network\protocol\AddEntityPacket();
$pk->type = cow::NETWORK_ID;
$pk->eid = $this->getId();
$pk->x = $this->x;
$pk->y = $this->y;
$pk->z = $this->z;
$pk->speedX = $this->motionX;
$pk->speedY = $this->motionY;
$pk->speedZ = $this->motionZ;
$pk->metadata = $this->dataProperties;
$player->dataPacket($pk);
#0 src/pocketmine/Player(1018): NawafPlugin\Entity\rav->spawnTo(pocketmine\Player object)
#1 src/pocketmine/level/Level(2639): pocketmine\Player->sendChunk(integer 12, integer 2, pocketmine\network\mcpe\protocol\BatchPacket object)
#2 src/pocketmine/level/Level(2663): pocketmine\level\Level->sendChunkFromCache(integer 12, integer 2)
#3 src/pocketmine/level/Level(900): pocketmine\level\Level->processChunkRequest()
#4 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 1186)
#5 src/pocketmine/Server(2434): pocketmine\level\Level->doTick(integer 1186)
#6 src/pocketmine/Server(2565): pocketmine\Server->checkTickUpdates(integer 1186, double 1562864394.8154)
#7 src/pocketmine/Server(2334): pocketmine\Server->tick()
#8 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1774): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Dell\Desktop\PocketMine-MP\, string C:\Users\Dell\Desktop\PocketMine-MP\plugins\)
#11 (1): require(string phar://C:/Users/Dell/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show