menu
#10302652 Access to undeclared static property hcf\HCFLoader::$enderPearl

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 19:19:23 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 55 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux 8ac151b6-f66b-4eb2-8fbb-2cbb24dc737e 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64

Error information

Warning: the CustomEnderPearl plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Access to undeclared static property hcf\HCFLoader::$enderPearl
File: plugins/CustomEnderPearl/src/CustomEnderPearl/CustomEnderPearl
Line: #267
Type: Error
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
    {
if (!$ev->getItem()->equals(VanillaItems::ENDER_PEARL())) return;
if (($p = $ev->getPlayer())->isCreative()) return;
$session = $p->getSession();
if ($session->getCooldown('enderpearl') !== null) {
$ev->cancel();
return;
}
$session->addCooldown('enderpearl', '&l&eEnderpearl&r&7: &r&c', 15);
HCFLoader::$enderPearl["lastUse"][$p->getName()] = $p->getPosition();
HCFLoader::getInstance()->getScheduler()->scheduleDelayedTask(new ClosureTask(function () use ($p): void {
if ($p->isOnline()) {
HCFLoader::$enderPearl["lastUse"][$p->getName()] = "";
}
}), 20 * 20);
}

public function onDeath(PlayerDeathEvent $ev): void
{
$session = $ev->getPlayer()->getSession();
#0 pmsrc/src/event/RegisteredListener(61): CustomEnderPearl\CustomEnderPearl->onInteract(object pocketmine\event\player\PlayerItemUseEvent#85474)
#1 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerItemUseEvent#85474)
#2 pmsrc/src/player/Player(1607): pocketmine\event\Event->call()
#3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(508): pocketmine\player\Player->useHeldItem()
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(342): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#197984)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(94): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#92561)
#6 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#101766)
#7 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#92561, string[97] ........................................................................}.\.r=.B)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[54] .c.a.N.cg.ed`bd``..&.$.......?..H.?f,Jk.b...Ntz.......)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[63] .=...L.A.!?Q[Q..(....cDwm@._D...6..;c.w...U.4N.)d.B..o.M3.f2`|.)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#208985)
#11 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#13 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#15 pmsrc/src/Server(1699): pocketmine\snooze\SleeperHandler->sleepUntil(float 1707765563.7892)
#16 pmsrc/src/Server(1067): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#18 pmsrc/src/PocketMine(364): pocketmine\server()
#19 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show