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

Submitted by PocketMine-MP 3.9.5

General information

Version: 3.9.5
Git commit: f0539f48
Plugin involvement: Direct
Report date: 2019-10-09 19:41:58 +0000 UTC

System Information

PHP version: 7.3.8
Operating system: linux
System banner: Linux e0788d2794ab 4.4.0-164-generic #192-Ubuntu SMP Fri Sep 13 12:02:50 UTC 2019 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\Wolf::getInventory()
File: plugins/AdminTroll.phar/src/Swourire/AdminTroll/Events/Events
Line: #28
Error level: Error
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
    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() === ItemIds::BLAZE_ROD && $item->getCustomName() === '§l§1> §r§bReal Smiter'){
$this->plugin->functions->sendLightning($player);
}
if($item->getId() === ItemIds::STICK && $item->getCustomName() === '§l§1> §r§bFalse Smiter'){
$this->plugin->functions->sendLightning($player);
$event->setCancelled();
}
if($item->getId() === ItemIds::GLASS && $item->getCustomName() === '§l§1> §r§bTrapper'){
$this->plugin->functions->trapPlayer($player);
$event->setCancelled();
#0 src/pocketmine/plugin/MethodEventExecutor(38): Swourire\AdminTroll\Events\Events->onPlayerHit(object pocketmine\event\entity\EntityDamageByEntityEvent)
#1 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object Swourire\AdminTroll\Events\Events, object pocketmine\event\entity\EntityDamageByEntityEvent)
#2 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent)
#3 src/pocketmine/entity/Entity(992): pocketmine\event\Event->call()
#4 src/pocketmine/entity/Living(574): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#5 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/BaseEntity(266): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#6 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/walking/Wolf(241): revivalpmmp\pureentities\entity\BaseEntity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#7 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/walking/Wolf(271): revivalpmmp\pureentities\entity\monster\walking\Wolf->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#8 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(72): revivalpmmp\pureentities\entity\monster\walking\Wolf->attackEntity(object revivalpmmp\pureentities\entity\monster\walking\Wolf)
#9 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(198): revivalpmmp\pureentities\entity\monster\WalkingMonster->checkAndAttackEntity(object revivalpmmp\pureentities\entity\monster\walking\Wolf)
#10 src/pocketmine/level/Level(853): revivalpmmp\pureentities\entity\monster\WalkingMonster->onUpdate(integer 22129)
#11 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 22129)
#12 src/pocketmine/Server(2446): pocketmine\level\Level->doTick(integer 22129)
#13 src/pocketmine/Server(2577): pocketmine\Server->checkTickUpdates(integer 22129, double 1570650118.8411)
#14 src/pocketmine/Server(2346): pocketmine\Server->tick()
#15 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#16 src/pocketmine/Server(1784): pocketmine\Server->start()
#17 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /aternos/server/, string[24] /aternos/server/plugins/)
#18 src/pocketmine/PocketMine(299): pocketmine\server()
#19 (1): require(string[64] phar:///aternos/server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show