menu
#4656603 Call to undefined method revivalpmmp\pureentities\entity\monster\walking\Creeper::getInventory()

Submitted by PocketMine-MP 3.16.0

General information

Version: 3.16.0
Git commit: d2f68836
Plugin involvement: Direct
Report date: 2020-11-21 18:03:43 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux 684baecad1ca 5.4.0-1018-kvm #18-Ubuntu SMP Thu Jun 25 09:42:57 UTC 2020 x86_64

Error information

Warning: the AdminTroll plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method revivalpmmp\pureentities\entity\monster\walking\Creeper::getInventory()
File: plugins/AdminTroll.phar/src/Swourire/AdminTroll/Events/Events
Line: #26
Error level: Error
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
    public function __construct(Main $plugin){
$this->plugin = $plugin;
}

public function onPlayerHit(EntityDamageByEntityEvent $event){
$damager = $event->getDamager();

$player = $event->getEntity();

$item = $damager->getInventory()->getItemInHand();
if($item->getId() === 369 && $item->getCustomName() === '§l§1> §r§bReal Smiter'){
$this->plugin->functions->sendLightning($player);
}
if($item->getId() === 280 && $item->getCustomName() === '§l§1> §r§bFalse Smiter'){
$this->plugin->functions->sendLightning($player);
$event->setCancelled();
}
if($item->getId() === 20 && $item->getCustomName() === '§l§1> §r§bTrapper'){
$this->plugin->functions->trapPlayer($player);
$event->setCancelled();
#0 src/pocketmine/plugin/MethodEventExecutor(42): Swourire\AdminTroll\Events\Events->onPlayerHit(object pocketmine\event\entity\EntityDamageByEntityEvent)
#1 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object Swourire\AdminTroll\Events\Events, 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(932): pocketmine\event\Event->call()
#4 src/pocketmine/entity/Living(545): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#5 src/pocketmine/Player(3891): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#6 src/pocketmine/level/Explosion(202): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#7 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/walking/Creeper(90): pocketmine\level\Explosion->explodeB()
#8 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/walking/Creeper(108): revivalpmmp\pureentities\entity\monster\walking\Creeper->explode()
#9 src/pocketmine/level/Level(854): revivalpmmp\pureentities\entity\monster\walking\Creeper->onUpdate(integer 4659)
#10 src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 4659)
#11 src/pocketmine/Server(2267): pocketmine\level\Level->doTick(integer 4659)
#12 src/pocketmine/Server(2398): pocketmine\Server->checkTickUpdates(integer 4659, double 1605981823.3241)
#13 src/pocketmine/Server(2154): pocketmine\Server->tick()
#14 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#15 src/pocketmine/Server(1588): pocketmine\Server->start()
#16 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[8] /server/, string[16] /server/plugins/)
#17 src/pocketmine/PocketMine(304): pocketmine\server()
#18 (11): require(string[56] phar:///server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show