menu
#4220188 Call to undefined method pocketmine\event\inventory\InventoryPickupItemEvent::getPlayer()

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:51:03 +0000 UTC

System Information

PHP version: 7.3.13
Operating system: linux
System banner: Linux ns382185.ip-46-105-98.eu 2.6.32-openvz-042stab139.1-amd64 #1 SMP Tue Jun 18 12:55:38 MSK 2019 x86_64

Error information

Warning: the SkyBlockCore plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\event\inventory\InventoryPickupItemEvent::getPlayer()
File: plugins/SkyBlockCore-master.phar/src/Dapro718/SkyBlockCore/Events/EventManager
Line: #73
Error level: Error
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
  
public function itemDrop(PlayerDropItemEvent $event){
$player = $event->getPlayer();
$level = $player->getLevel()->getFolderName();
$status = $this->ItemEvent->eventRun($player, $level);
$event->setCancelled($status);
}

public function itemPickup(InventoryPickupItemEvent $event){
$player = $event->getPlayer();
$level = $player->getLevel()->getFolderName();
$status = $this->ItemEvent->eventRun($player, $level);
$event->setCancelled($status);
}

public function onInteract(PlayerInteractEvent $event) {
$player = $event->getPlayer();
$level = $player->getLevel()->getFolderName();
$status = $this->InteractEvent->eventRun($player, $level);
$event->setCancelled($status);
#0 src/pocketmine/plugin/MethodEventExecutor(42): Dapro718\SkyBlockCore\Events\EventManager->itemPickup(object pocketmine\event\inventory\InventoryPickupItemEvent)
#1 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object Dapro718\SkyBlockCore\Events\EventManager, object pocketmine\event\inventory\InventoryPickupItemEvent)
#2 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\inventory\InventoryPickupItemEvent)
#3 src/pocketmine/entity/object/ItemEntity(195): pocketmine\event\Event->call()
#4 src/pocketmine/Player(1512): pocketmine\entity\object\ItemEntity->onCollideWithPlayer(object jasonwynn10\VanillaEntityAI\entity\passiveaggressive\Player)
#5 src/pocketmine/Player(1716): pocketmine\Player->checkNearEntities()
#6 src/pocketmine/level/Level(844): pocketmine\Player->onUpdate(integer 972)
#7 src/pocketmine/level/Level(777): pocketmine\level\Level->actuallyDoTick(integer 972)
#8 src/pocketmine/Server(2256): pocketmine\level\Level->doTick(integer 972)
#9 src/pocketmine/Server(2387): pocketmine\Server->checkTickUpdates(integer 972, double 1590205863.6553)
#10 src/pocketmine/Server(2143): pocketmine\Server->tick()
#11 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#12 src/pocketmine/Server(1584): pocketmine\Server->start()
#13 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[28] /home/minecraft-pe-5/server/, string[36] /home/minecraft-pe-5/server/plugins/)
#14 src/pocketmine/PocketMine(296): pocketmine\server()
#15 (11): require(string[83] phar:///home/minecraft-pe-5/server/PocketMine-MP.phar/src/pocketmine/PocketMine.)

Loaded Plugins

  • Show

Server Settings

  • Show