menu
#2824492 Call to a member function getFlag() on null

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-09-11 12:21:35 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux ns3141500.ip-51-77-56.eu 4.19-ovh-xxxx-std-ipv6-64 #821614 SMP Thu Jul 25 13:37:36 UTC 2019 x86_64

Error information

Warning: the MagicGuard plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getFlag() on null
File: plugins/MagicGuard/src/magicguard/listener/EntityListener
Line: #57
Error level: Error
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
            if ($entityRg !== null) {
if ($entityRg->getFlag("invincible") === true) {
$e->setCancelled();
return;
}
if ($e instanceof EntityDamageByEntityEvent) {
$dam = $e->getDamager();
if ($dam instanceof Player) {
$damagerRg = $this->guard->getRegion($dam);
if ($entityRg->getFlag("pvp") === false or $damagerRg->getFlag("pvp") === false) {
$e->setCancelled();
$dam->sendMessage($this->guard->tr("event.pvp"));
}
}
}
}
}
}
}
#0 src/pocketmine/plugin/MethodEventExecutor(38): magicguard\listener\EntityListener->onDamage(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#1 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(magicguard\listener\EntityListener object, pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#2 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#3 src/pocketmine/entity/Entity(984): pocketmine\event\Event->call()
#4 src/pocketmine/entity/Living(572): pocketmine\entity\Entity->attack(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#5 src/pocketmine/Player(3719): pocketmine\entity\Living->attack(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#6 src/pocketmine/entity/projectile/Projectile(318): pocketmine\Player->attack(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#7 src/pocketmine/entity/projectile/Arrow(150): pocketmine\entity\projectile\Projectile->onHitEntity(pocketmine\Player object, pocketmine\math\RayTraceResult object)
#8 src/pocketmine/entity/projectile/Projectile(252): pocketmine\entity\projectile\Arrow->onHitEntity(pocketmine\Player object, pocketmine\math\RayTraceResult object)
#9 src/pocketmine/entity/Entity(1464): pocketmine\entity\projectile\Projectile->move(double 0.08381941884357, double 0.59996978052451, double -3.6091709278417)
#10 src/pocketmine/level/Level(848): pocketmine\entity\Entity->onUpdate(integer 44020)
#11 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 44020)
#12 src/pocketmine/Server(2434): pocketmine\level\Level->doTick(integer 44020)
#13 src/pocketmine/Server(2565): pocketmine\Server->checkTickUpdates(integer 44020, double 1568204495.8832)
#14 src/pocketmine/Server(2334): pocketmine\Server->tick()
#15 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#16 src/pocketmine/Server(1774): pocketmine\Server->start()
#17 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/1_11/, string /home/1_11/plugins/)
#18 (1): require(string phar:///home/1_11/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show