Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash server #4

Closed
axelmine opened this issue Mar 15, 2020 · 0 comments
Closed

crash server #4

axelmine opened this issue Mar 15, 2020 · 0 comments

Comments

@axelmine
Copy link

PocketMine-MP Crash Dump Sun Mar 15 10:37:07 UTC 2020

Error: Call to a member function hasTag() on null
File: plugins/BossPlugin_dev-2.phar/src/hmmhmmmm/boss/entity/BossSkeleton
Line: 50
Type: Error

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: BossPlugin v3.1

Code:
[41] public function targetOption(Creature $creature, float $distance) : bool{
[42] if(!($creature instanceof SlapperHuman)){
[43] return parent::targetOption($creature, $distance);
[44] }
[45] return false;
[46] }
[47]
[48] public function entityBaseTick(int $tickDiff = 1) : bool{
[49] $hasUpdate = parent::entityBaseTick($tickDiff);
[50] if($this->namedtag->hasTag("Boss".$this->getName(), StringTag::class)){
[51] $name = $this->namedtag->getString("Boss".$this->getName());
[52] if(BossData::isBoss($name)){
[53] $this->setNameTag($name." В§c(".$this->getHealth()."/".$this->getMaxHealth().")");
[54] $this->setNameTagAlwaysVisible(true);
[55] $this->setNameTagVisible(true);
[56] }
[57] }
[58] return $hasUpdate;
[59] }
[60]

Backtrace:
#0 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(181): hmmhmmmm\boss\entity\BossSkeleton->entityBaseTick(integer 1)
#1 src/pocketmine/level/Level(844): revivalpmmp\pureentities\entity\monster\WalkingMonster->onUpdate(integer 6109)
#2 src/pocketmine/level/Level(777): pocketmine\level\Level->actuallyDoTick(integer 6109)
#3 src/pocketmine/Server(2256): pocketmine\level\Level->doTick(integer 6109)
#4 src/pocketmine/Server(2387): pocketmine\Server->checkTickUpdates(integer 6109, double 1584268627.1942)
#5 src/pocketmine/Server(2143): pocketmine\Server->tick()
#6 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1584): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/mcserver/, string[23] /home/mcserver/plugins/)
#9 src/pocketmine/PocketMine(296): pocketmine\server()
#10 (11): require(string[70] phar:///home/mcserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.11.6 [Protocol 389]
Git commit: cb9e79b3985719671bd5cbaa7f665b04a6d33359-dirty
uname -a: Linux debian-4gb-fsn1-1 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64
PHP Version: 7.3.14
Zend version: 3.3.14
OS : Linux, linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants