menu
#2580607 Call to a member function getId() on integer

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:57:50 +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: Call to a member function getId() on integer
File: plugins/Boss/src/NawafPlugin/Boss
Line: #221
Error level: Error
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
                    $this->plugin->stop("player");
}

if($this->isAlive() && $this->plugin->mode == 1 && count($this->plugin->player) == 0){
$this->despawnFromAll();
}

$this->plugin->entityHeal = $this->getHealth();

if($this->getLevel()->getBlockIdAt($this->x, $this->y - 1, $this->z)->getId() == 252){
$mot = (new Random())->nextSignedFloat() * M_PI * 2;
$nbt = \pocketmine\entity\Entity::createBaseNBT($this, new \pocketmine\math\Vector3(-sin($mot) * 0.02, 0.2, -cos($mot) * 0.02));
$nbt->setShort("Fuse", 90);
$tnt = \pocketmine\entity\Entity::createEntity("PrimedTNT", $this->getLevel(), $nbt);
$tnt->spawnToAll();
$this->teleport($this->plugin->map["spawn"]);
}

if($this->getHealth() <= 50){

#0 src/pocketmine/level/Level(848): NawafPlugin\Entity\rav->onUpdate(integer 881)
#1 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 881)
#2 src/pocketmine/Server(2434): pocketmine\level\Level->doTick(integer 881)
#3 src/pocketmine/Server(2565): pocketmine\Server->checkTickUpdates(integer 881, double 1562864270.2951)
#4 src/pocketmine/Server(2334): pocketmine\Server->tick()
#5 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1774): pocketmine\Server->start()
#7 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\)
#8 (1): require(string phar://C:/Users/Dell/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show