menu
#2823127 Call to undefined method pocketmine\entity\object\PrimedTNT::hasEffect()

Submitted by PocketMine-MP 3.9.0

General information

Version: 3.9.0
Git commit: bd69c66d
Plugin involvement: Direct
Report date: 2019-09-11 01:57:44 +0000 UTC

System Information

PHP version: 7.3.7
Operating system: linux
System banner: Linux ce457b4b8d06 4.4.0-154-generic #181-Ubuntu SMP Tue Jun 25 05:29:03 UTC 2019 x86_64

Error information

Warning: the PiggyCustomEnchants plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\entity\object\PrimedTNT::hasEffect()
File: plugins/PiggyCustomEnchants.phar/src/PiggyCustomEnchants/EventListener
Line: #1108
Error level: Error
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
                            $effect = new EffectInstance(Effect::getEffect(Effect::REGENERATION), 60 * $enchantment->getLevel(), $enchantment->getLevel(), false);
$entity->addEffect($effect);
}
$enchantment = $armor->getEnchantment(CustomEnchantsIds::HARDENED);
if ($enchantment !== null && $damager->hasEffect(Effect::WEAKNESS) !== true) {
$effect = new EffectInstance(Effect::getEffect(Effect::WEAKNESS), 60 * $enchantment->getLevel(), $enchantment->getLevel(), false);
$damager->addEffect($effect);
}
$enchantment = $armor->getEnchantment(CustomEnchantsIds::POISONED);
if ($enchantment !== null && $damager->hasEffect(Effect::POISON) !== true) {
$effect = new EffectInstance(Effect::getEffect(Effect::POISON), 60 * $enchantment->getLevel(), $enchantment->getLevel(), false);
$damager->addEffect($effect);
}
$enchantment = $armor->getEnchantment(CustomEnchantsIds::FROZEN);
if ($enchantment !== null && $damager->hasEffect(Effect::SLOWNESS) !== true) {
$effect = new EffectInstance(Effect::getEffect(Effect::SLOWNESS), 60 * $enchantment->getLevel(), $enchantment->getLevel(), false);
$damager->addEffect($effect);
}
$enchantment = $armor->getEnchantment(CustomEnchantsIds::REVULSION);
if ($enchantment !== null && $damager->hasEffect(Effect::NAUSEA) !== true) {
#0 plugins/PiggyCustomEnchants.phar/src/PiggyCustomEnchants/EventListener(154): PiggyCustomEnchants\EventListener->checkArmorEnchants(object pocketmine\Player, object pocketmine\event\entity\EntityDamageByEntityEvent)
#1 src/pocketmine/plugin/MethodEventExecutor(38): PiggyCustomEnchants\EventListener->onDamage(object pocketmine\event\entity\EntityDamageByEntityEvent)
#2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object PiggyCustomEnchants\EventListener, object pocketmine\event\entity\EntityDamageByEntityEvent)
#3 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent)
#4 src/pocketmine/entity/Entity(992): pocketmine\event\Event->call()
#5 src/pocketmine/entity/Living(574): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#6 src/pocketmine/Player(3722): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#7 src/pocketmine/level/Explosion(198): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#8 src/pocketmine/entity/object/PrimedTNT(112): pocketmine\level\Explosion->explodeB()
#9 src/pocketmine/entity/object/PrimedTNT(97): pocketmine\entity\object\PrimedTNT->explode()
#10 src/pocketmine/entity/Entity(1481): pocketmine\entity\object\PrimedTNT->entityBaseTick(integer 1)
#11 src/pocketmine/level/Level(848): pocketmine\entity\Entity->onUpdate(integer 35469)
#12 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 35469)
#13 src/pocketmine/Server(2445): pocketmine\level\Level->doTick(integer 35469)
#14 src/pocketmine/Server(2576): pocketmine\Server->checkTickUpdates(integer 35469, double 1568167064.4083)
#15 src/pocketmine/Server(2345): pocketmine\Server->tick()
#16 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#17 src/pocketmine/Server(1784): pocketmine\Server->start()
#18 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /aternos/server/, string[24] /aternos/server/plugins/)
#19 (1): require(string[64] phar:///aternos/server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show