menu
#4873685 Call to undefined method DaPigGuy\PiggyCustomEnchants\entities\PiggyLightning::getName()

Submitted by PocketMine-MP 3.18.0

General information

Version: 3.18.0
Git commit: 3f649062
Plugin involvement: Direct
Report date: 2021-04-07 20:28:18 +0000 UTC
Server uptime: 0 days 1 hours 31 minutes 39 seconds

System Information

PHP version: 7.4.15
Operating system: linux
System banner: Linux 4aa03cc4-868a-4733-9274-1bca2a7691a8 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the Unknown plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method DaPigGuy\PiggyCustomEnchants\entities\PiggyLightning::getName()
File: plugins/Skyoz.phar/src/VitalHCF/listeners/Death
Line: #43
Error level: Error
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
		$player = $event->getPlayer();
if($player instanceof Player){
if($player->getLastDamageCause() instanceof EntityDamageByEntityEvent){
$damager = $player->getLastDamageCause()->getDamager();
if($damager instanceof Player){
//TODO:
$damager->addKills();
}
$this->plugin->getServer()->getAsyncPool()->submitTask(new SaveData($player->getName(), $player->getInventory()->getContents(), $player->getArmorInventory()->getContents(), new Config($this->plugin->getDataFolder()."backup".DIRECTORY_SEPARATOR."inventory.yml", Config::YAML)));
$event->setDeathMessage(TE::DARK_RED.$player->getName().TE::GRAY."[".TE::YELLOW.$player->getKills().TE::GRAY."]".TE::GRAY."[".TE::RED.$player->getHealth().TE::GRAY."]".TE::GRAY." was killed by ".TE::RESET.TE::RED.$damager->getName().TE::GRAY."[".TE::YELLOW.$damager->getKills().TE::GRAY."]".TE::GRAY."[".TE::RED.$damager->getHealth().TE::GRAY."]".TE::YELLOW." using ".$damager->getInventory()->getItemInHand()->getName());
}else{
switch($player->getLastDamageCause()->getCause()){
case EntityDamageEvent::CAUSE_FALL:
$this->plugin->getServer()->getAsyncPool()->submitTask(new SaveData($player->getName(), $player->getInventory()->getContents(), $player->getArmorInventory()->getContents(), new Config($this->plugin->getDataFolder()."backup".DIRECTORY_SEPARATOR."inventory.yml", Config::YAML)));
$event->setDeathMessage(TE::DARK_RED.$player->getName().TE::GRAY." fell from a high place!");
break;
case EntityDamageEvent::CAUSE_DROWNING:
$this->plugin->getServer()->getAsyncPool()->submitTask(new SaveData($player->getName(), $player->getInventory()->getContents(), $player->getArmorInventory()->getContents(), new Config($this->plugin->getDataFolder()."backup".DIRECTORY_SEPARATOR."inventory.yml", Config::YAML)));
$event->setDeathMessage(TE::DARK_RED.$player->getName().TE::GRAY." drowned!");
break;
#0 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): VitalHCF\listeners\Death->onPlayerDeathEvent(object pocketmine\event\player\PlayerDeathEvent)
#1 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object VitalHCF\listeners\Death, object pocketmine\event\player\PlayerDeathEvent)
#2 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerDeathEvent)
#3 pmsrc/src/pocketmine/Player(3833): pocketmine\event\Event->call()
#4 pmsrc/src/pocketmine/entity/Living(612): pocketmine\Player->onDeath()
#5 pmsrc/src/pocketmine/Player(3822): pocketmine\entity\Living->kill()
#6 pmsrc/src/pocketmine/entity/Entity(982): pocketmine\Player->kill()
#7 pmsrc/src/pocketmine/entity/Living(145): pocketmine\entity\Entity->setHealth(double -2)
#8 pmsrc/src/pocketmine/entity/Entity(939): pocketmine\entity\Living->setHealth(double -2)
#9 pmsrc/src/pocketmine/entity/Living(552): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#10 pmsrc/src/pocketmine/Player(3919): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#11 plugins/PiggyCustomEnchants (1).phar/src/DaPigGuy/PiggyCustomEnchants/entities/PiggyLightning(52): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#12 pmsrc/src/pocketmine/entity/Entity(1393): DaPigGuy\PiggyCustomEnchants\entities\PiggyLightning->entityBaseTick(integer 1)
#13 pmsrc/src/pocketmine/level/Level(854): pocketmine\entity\Entity->onUpdate(integer 103453)
#14 pmsrc/src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 103453)
#15 pmsrc/src/pocketmine/Server(2265): pocketmine\level\Level->doTick(integer 103453)
#16 pmsrc/src/pocketmine/Server(2396): pocketmine\Server->checkTickUpdates(integer 103453, double 1617827298.222)
#17 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#18 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#19 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#20 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#21 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#22 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show