menu
#3972463 Call to undefined method DaPigGuy\PiggyCustomEnchants\Entities\PiggyLightning::hasEffect()

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Direct
Report date: 2020-03-23 20:38:44 +0000 UTC

System Information

PHP version: 7.2.21
Operating system: linux
System banner: Linux 20197d6a-c0f9-4d14-8a6f-be832611470e 4.9.0-7-amd64 #1 SMP Debian 4.9.110-1 (2018-07-05) x86_64

Error information

Warning: the SkySword plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method DaPigGuy\PiggyCustomEnchants\Entities\PiggyLightning::hasEffect()
File: plugins/Sword.phar/src/Ayzrix/SkySword
Line: #83
Error level: Error
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93

if($event->canBeReducedByArmor()){

$event->setModifier(-$event->getFinalDamage() * $player->getArmorPoints() * 0.04, EntityDamageEvent::MODIFIER_ARMOR);

}

$cause = $event->getCause();

if($player->hasEffect(Effect::DAMAGE_RESISTANCE) and $cause !== EntityDamageEvent::CAUSE_VOID and $cause !== EntityDamageEvent::CAUSE_SUICIDE){

$event->setModifier(-$event->getFinalDamage() * min(1, 0.2 * $player->getEffect(Effect::DAMAGE_RESISTANCE)->getEffectLevel()), EntityDamageEvent::MODIFIER_RESISTANCE);

}

$totalEpf = 0;

foreach($player->getArmorInventory()->getContents() as $item){

if($item instanceof Armor){
#0 plugins/Sword.phar/src/Ayzrix/SkySword(61): Ayzrix\SkySword->getDamage(object pocketmine\event\entity\EntityDamageByEntityEvent, object DaPigGuy\PiggyCustomEnchants\Entities\PiggyLightning, integer 11)
#1 src/pocketmine/plugin/MethodEventExecutor(38): Ayzrix\SkySword->onEntityDamage(object pocketmine\event\entity\EntityDamageByEntityEvent)
#2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object Ayzrix\SkySword, object pocketmine\event\entity\EntityDamageByEntityEvent)
#3 src/pocketmine/event/Event(95): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent)
#4 src/pocketmine/entity/Entity(992): pocketmine\event\Event->call()
#5 src/pocketmine/entity/Living(512): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#6 src/pocketmine/entity/Human(752): pocketmine\entity\Living->applyPostDamageEffects(object pocketmine\event\entity\EntityDamageByEntityEvent)
#7 src/pocketmine/Player(3737): pocketmine\entity\Human->applyPostDamageEffects(object pocketmine\event\entity\EntityDamageByEntityEvent)
#8 src/pocketmine/entity/Living(603): pocketmine\Player->applyPostDamageEffects(object pocketmine\event\entity\EntityDamageByEntityEvent)
#9 src/pocketmine/Player(3756): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#10 plugins/PiggyCustomEnchants.phar/src/DaPigGuy/PiggyCustomEnchants/Entities/PiggyLightning(56): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#11 src/pocketmine/entity/Entity(1481): DaPigGuy\PiggyCustomEnchants\Entities\PiggyLightning->entityBaseTick(integer 1)
#12 src/pocketmine/level/Level(853): pocketmine\entity\Entity->onUpdate(integer 66035)
#13 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 66035)
#14 src/pocketmine/Server(2443): pocketmine\level\Level->doTick(integer 66035)
#15 src/pocketmine/Server(2574): pocketmine\Server->checkTickUpdates(integer 66035, double 1584995924.2125)
#16 src/pocketmine/Server(2343): pocketmine\Server->tick()
#17 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#18 src/pocketmine/Server(1785): pocketmine\Server->start()
#19 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#20 src/pocketmine/PocketMine(295): pocketmine\server()
#21 (1): require(string[64] phar:///home/container/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show