menu
#4220045 Call to undefined method pocketmine\entity\object\ItemEntity::addTitle()

Submitted by PocketMine-MP 3.12.0

General information

Version: 3.12.0
Git commit: 77d45bf1
Plugin involvement: Direct
Report date: 2020-05-23 03:08:53 +0000 UTC

System Information

PHP version: 7.3.16
Operating system: linux
System banner: Linux b0d3e510-84cb-40e8-9530-55c975b6c112 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64

Error information

Warning: the NoDeathScreen plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\entity\object\ItemEntity::addTitle()
File: plugins/NoDeathScreen (3).phar/src/zZPROGAMERZz423/NoDeathScreen/Main
Line: #22
Error level: Error
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
        $this->getServer()->getPluginManager()->registerEvents($this,$this);
}

public function onDamage(EntityDamageEvent $event) {
$player = $event->getEntity();
if($event->getFinalDamage() >= $player->getHealth()) {
$event->setCancelled();
$player->teleport($this->getServer()->getDefaultLevel()->getSafeSpawn());
$player->setHealth($player->getMaxHealth());
$player->addTitle("§l§cYOU DIED!", "§r§eTeleporting to spawn", 1, 100, 50);
}
}

public function onDisable(){
}
}
#0 src/pocketmine/plugin/MethodEventExecutor(42): zZPROGAMERZz423\NoDeathScreen\Main->onDamage(object pocketmine\event\entity\EntityDamageByEntityEvent)
#1 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object zZPROGAMERZz423\NoDeathScreen\Main, object pocketmine\event\entity\EntityDamageByEntityEvent)
#2 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent)
#3 src/pocketmine/entity/Entity(925): pocketmine\event\Event->call()
#4 src/pocketmine/level/Explosion(200): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#5 src/pocketmine/entity/object/PrimedTNT(112): pocketmine\level\Explosion->explodeB()
#6 src/pocketmine/entity/object/PrimedTNT(97): pocketmine\entity\object\PrimedTNT->explode()
#7 src/pocketmine/entity/Entity(1383): pocketmine\entity\object\PrimedTNT->entityBaseTick(integer 1)
#8 src/pocketmine/level/Level(844): pocketmine\entity\Entity->onUpdate(integer 3766)
#9 src/pocketmine/level/Level(777): pocketmine\level\Level->actuallyDoTick(integer 3766)
#10 src/pocketmine/Server(2256): pocketmine\level\Level->doTick(integer 3766)
#11 src/pocketmine/Server(2387): pocketmine\Server->checkTickUpdates(integer 3766, double 1590203332.2398)
#12 src/pocketmine/Server(2143): pocketmine\Server->tick()
#13 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#14 src/pocketmine/Server(1584): pocketmine\Server->start()
#15 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#16 src/pocketmine/PocketMine(296): pocketmine\server()
#17 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show