menu
#5037737 Call to undefined method pocketmine\event\entity\EntityTeleportEvent::getPlayer()

Submitted by PocketMine-MP 4.0.0+dev

General information

Version: 4.0.0+dev
Git commit: c5abae9e
Plugin involvement: Direct
Report date: 2021-07-21 21:58:28 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 28 seconds

System Information

PHP version: 8.0.7
Operating system: linux
System banner: Linux ns556347 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the AethicPrisons plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\event\entity\EntityTeleportEvent::getPlayer()
File: plugins/AethicPrison.phar/src/core/level/entity/npc/NPCListener
Line: #72
Error level: Error
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
    }

/**
* @param EntityTeleportEvent $event
*/
public function onEntityTeleport(EntityTeleportEvent $event) {
$entity = $event->getEntity();
if($entity instanceof NexusPlayer) {
foreach($this->core->getLevelManager()->getNPCs() as $npc) {
if($npc->isSpawned($entity) and $npc->getPosition()->getWorld()->getFolderName() !== $event->getPlayer()->getWorld()->getFolderName()) {
$npc->despawnFrom($entity);
}
}
}
}


/**
* @priority NORMAL
*
#0 pmsrc/src/event/RegisteredListener(75): core\level\entity\npc\NPCListener->onEntityTeleport(object pocketmine\event\entity\EntityTeleportEvent#239324)
#1 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\entity\EntityTeleportEvent#239324)
#2 pmsrc/src/entity/Entity(1427): pocketmine\event\Event->call()
#3 pmsrc/src/player/Player(2255): pocketmine\entity\Entity->teleport(object pocketmine\world\Position#245578, NULL , NULL )
#4 plugins/AethicPrison.phar/src/core/player/NexusPlayer(970): pocketmine\player\Player->teleport(object pocketmine\world\Position#245578, NULL , NULL )
#5 plugins/AethicPrison.phar/src/core/command/task/TeleportTask(44): core\player\NexusPlayer->teleport(object pocketmine\world\Position#245578)
#6 plugins/AethicPrison.phar/src/core/game/plot/command/inventory/PlotTeleportInventory(50): core\command\task\TeleportTask->__construct(object core\player\NexusPlayer#159032, object pocketmine\world\Position#245578, integer 10)
#7 /home/servers/prison/virions/InvMenu-4.0/src/muqsit/invmenu/InvMenu(44): core\game\plot\command\inventory\PlotTeleportInventory->core\game\plot\command\inventory\{closure}(object muqsit\invmenu\transaction\DeterministicInvMenuTransaction#245920)
#8 /home/servers/prison/virions/InvMenu-4.0/src/muqsit/invmenu/InvMenu(160): muqsit\invmenu\InvMenu::muqsit\invmenu\{closure}(object muqsit\invmenu\transaction\SimpleInvMenuTransaction#223534)
#9 /home/servers/prison/virions/InvMenu-4.0/src/muqsit/invmenu/InvMenuEventHandler(90): muqsit\invmenu\InvMenu->handleInventoryTransaction(object core\player\NexusPlayer#159032, object pocketmine\item\ItemBlock#222777, object pocketmine\item\ItemBlock#223168, object pocketmine\inventory\transaction\action\SlotChangeAction#94355, object pocketmine\inventory\transaction\InventoryTransaction#222952)
#10 pmsrc/src/event/RegisteredListener(75): muqsit\invmenu\InvMenuEventHandler->onInventoryTransaction(object pocketmine\event\inventory\InventoryTransactionEvent#241483)
#11 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\inventory\InventoryTransactionEvent#241483)
#12 pmsrc/src/inventory/transaction/InventoryTransaction(294): pocketmine\event\Event->call()
#13 pmsrc/src/inventory/transaction/InventoryTransaction(312): pocketmine\inventory\transaction\InventoryTransaction->callExecuteEvent()
#14 pmsrc/src/network/mcpe/handler/InGamePacketHandler(335): pocketmine\inventory\transaction\InventoryTransaction->execute()
#15 pmsrc/src/network/mcpe/handler/InGamePacketHandler(226): pocketmine\network\mcpe\handler\InGamePacketHandler->handleNormalTransaction(object pocketmine\network\mcpe\protocol\types\inventory\NormalTransactionData#246475)
#16 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(106): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#226004)
#17 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#96415)
#18 pmsrc/src/network/mcpe/NetworkSession(346): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#226004, string[1263] ..............m...........___Meta___.......display...Lore.......9...r..cRequired)
#19 pmsrc/src/network/mcpe/raklib/RakLibInterface(188): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[360] ..MK.A...SH..O .e.Y...$:...[..t..}\.vwlv.....c?J..].......;...0.{.f...2...J.....)
#20 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[369] ..~.</..Dbl../.".R.3...C.L...;.f?.......#.....apHg.T...s.....0>.?.Nl......^ay..,)
#21 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#93173)
#22 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#23 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#24 pmsrc/src/Server(1598): pocketmine\snooze\SleeperHandler->sleepUntil(double 1626904708.6018)
#25 pmsrc/src/Server(1148): pocketmine\Server->tickProcessor()
#26 pmsrc/src/PocketMine(277): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[21] /home/servers/prison/, string[29] /home/servers/prison/plugins/)
#27 pmsrc/src/PocketMine(300): pocketmine\server()
#28 pmsrc(11): require(string[65] phar:///home/servers/prison/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show