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

Submitted by PocketMine-MP 3.8.6

General information

Version: 3.8.6
Git commit: 1bfd6f2a
Plugin involvement: Direct
Report date: 2019-07-11 18:46:37 +0000 UTC

System Information

PHP version: 7.2.8
Operating system: linux
System banner: Linux 5389cfa053d3 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 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_dev-4.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(38): zZPROGAMERZz423\NoDeathScreen\Main->onDamage(object pocketmine\event\entity\EntityDamageEvent)
#1 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object zZPROGAMERZz423\NoDeathScreen\Main, object pocketmine\event\entity\EntityDamageEvent)
#2 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageEvent)
#3 src/pocketmine/entity/Entity(986): pocketmine\event\Event->call()
#4 src/pocketmine/entity/Entity(1110): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageEvent)
#5 src/pocketmine/entity/object/ItemEntity(90): pocketmine\entity\Entity->entityBaseTick(integer 1)
#6 src/pocketmine/entity/Entity(1475): pocketmine\entity\object\ItemEntity->entityBaseTick(integer 1)
#7 src/pocketmine/level/Level(848): pocketmine\entity\Entity->onUpdate(integer 4385)
#8 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 4385)
#9 src/pocketmine/Server(2445): pocketmine\level\Level->doTick(integer 4385)
#10 src/pocketmine/Server(2576): pocketmine\Server->checkTickUpdates(integer 4385, double 1562870797.707)
#11 src/pocketmine/Server(2345): pocketmine\Server->tick()
#12 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#13 src/pocketmine/Server(1784): pocketmine\Server->start()
#14 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/gs-40209/, string[23] /home/gs-40209/plugins/)
#15 (1): require(string[94] phar:///pro/bin/mcpe/pocketmine-stable-1.11.0/PocketMine-MP.phar/src/pocketmine/)

Loaded Plugins

  • Show

Server Settings

  • Show