menu
#10302564 Call to a member function getPermission() on null

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 18:58:30 +0000 UTC
Server uptime: 0 days 0 hours 6 minutes 2 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux 1186028b-9a1c-4031-a939-d97e3613a485 5.4.0-170-generic #188-Ubuntu SMP Wed Jan 10 09:51:01 UTC 2024 x86_64

Error information

Warning: the KoujiHCF plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to a member function getPermission() on null
File: plugins/KoujiHCF - CORE/src/hcf/prefix/utils/Utils
Line: #409
Type: Error
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
                        $player->removeCurrentWindow();
} elseif ($player->hasPermission($prefixPermission)) {
$player->getSession()->setPrefix("Hax");
$player->sendMessage(TextFormat::colorize("&aTe has colocado el prefix &l&8Hax &7Prefix"));
$player->removeCurrentWindow();
}
}

if ($item->getCustomName() === TextFormat::colorize('&l&6GOD &7Prefix')) {
$prefixPermission = HCFLoader::getInstance()->getPrefixManager()->getPrefix("GOD")->getPermission();
if (!$player->hasPermission($prefixPermission)) {
$player->sendMessage(TextFormat::colorize("&cYou do not have permission to use this item"));
$player->removeCurrentWindow();
} elseif ($player->hasPermission($prefixPermission)) {
$player->getSession()->setPrefix("GOD");
$player->sendMessage(TextFormat::colorize("&aTe has colocado el prefix &l&6GOD &7Prefix"));
$player->removeCurrentWindow();
}
}

#0 plugins/Bank_System.phar/src/muqsit/invmenu/InvMenu(176): hcf\prefix\utils\Utils::hcf\prefix\utils\{closure}(object muqsit\invmenu\transaction\SimpleInvMenuTransaction#169729)
#1 plugins/Bank_System.phar/src/muqsit/invmenu/InvMenuEventHandler(75): muqsit\invmenu\InvMenu->handleInventoryTransaction(object hcf\player\Player#152627, object pocketmine\item\Dye#152502, object pocketmine\item\ItemBlock#169638, object pocketmine\inventory\transaction\action\SlotChangeAction#156168, object pocketmine\inventory\transaction\InventoryTransaction#168855)
#2 pmsrc/src/event/RegisteredListener(61): muqsit\invmenu\InvMenuEventHandler->onInventoryTransaction(object pocketmine\event\inventory\InventoryTransactionEvent#153880)
#3 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\inventory\InventoryTransactionEvent#153880)
#4 pmsrc/src/inventory/transaction/InventoryTransaction(295): pocketmine\event\Event->call()
#5 pmsrc/src/inventory/transaction/InventoryTransaction(313): pocketmine\inventory\transaction\InventoryTransaction->callExecuteEvent()
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(375): pocketmine\inventory\transaction\InventoryTransaction->execute()
#7 pmsrc/src/network/mcpe/handler/InGamePacketHandler(592): pocketmine\network\mcpe\handler\InGamePacketHandler->executeInventoryTransaction(object pocketmine\inventory\transaction\InventoryTransaction#168855, int -63)
#8 pmsrc/src/network/mcpe/handler/InGamePacketHandler(613): pocketmine\network\mcpe\handler\InGamePacketHandler->handleSingleItemStackRequest(object pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequest#159356)
#9 pmsrc/vendor/pocketmine/bedrock-protocol/src/ItemStackRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleItemStackRequest(object pocketmine\network\mcpe\protocol\ItemStackRequestPacket#160867)
#10 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\ItemStackRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#161968)
#11 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ItemStackRequestPacket#160867, string[19] ...}.......;.......)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[66] .....X.......l......l&0J....0w...?..(..v.5s.#.............z...e@..)
#13 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[75] .)[email protected],...Or..;...:Q.Q4.)
#14 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#206463)
#15 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#17 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#18 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#19 pmsrc/src/Server(1699): pocketmine\snooze\SleeperHandler->sleepUntil(float 1707764310.1901)
#20 pmsrc/src/Server(1067): pocketmine\Server->tickProcessor()
#21 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/)
#22 pmsrc/src/PocketMine(364): pocketmine\server()
#23 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