menu
#7034882 Undefined variable $p

Submitted by PocketMine-MP 4.5.1

General information

Version: 4.5.1
Git commit: d641812c
Plugin involvement: Direct
Report date: 2022-06-23 14:05:08 +0000 UTC
Server uptime: 0 days 1 hours 29 minutes 5 seconds

System Information

PHP version: 8.0.18
Operating system: linux
System banner: Linux cf7f70a8-0431-40e0-a322-fa3c118c17b9 5.13.0-1022-azure #26~20.04.1-Ubuntu SMP Thu Apr 7 19:42:45 UTC 2022 x86_64

Error information

Warning: the NichiCore plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable $p
File: plugins/NichiCore_dev-11.phar/src/Ihsan48/NichiCore/EventListener
Line: #50
Error level: ErrorException
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
            foreach (Server::getInstance()->getOnlinePlayers() as $players) {
$pl->hidePlayer($players);
}
$this->hideall[] = $pl->getName();
$pl->sendMessage("Uh");
}

if ($i->getCustomName() == "§7Unhide player") {
foreach (Server::getInstance()->getOnlinePlayers() as $players) {
$p->showPlayer($players);
}
unset($this->hideall[array_search($pl->getName(), $this->hideall)]);
$pl->getInventory()->setItem(0, ItemFactory::getInstance()->get(351, 10, 1)->setCustomName("§aHide player"));
$pl->sendMessage("Ah");
}

if ($i->getId() == 345 && $i->getCustomName("§aServer selector")){
new ServerSelectorForm($pl);
}
}
#0 plugins/NichiCore_dev-11.phar/src/Ihsan48/NichiCore/EventListener(50): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[21] Undefined variable $p, string[92] phar:///home/container/plugins/NichiCore_dev-11.phar/src/Ihsan48/NichiCore/Event, int 50)
#1 pmsrc/src/event/RegisteredListener(60): Ihsan48\NichiCore\EventListener->onInteract(object pocketmine\event\player\PlayerInteractEvent#101165)
#2 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerInteractEvent#101165)
#3 pmsrc/src/world/World(1792): pocketmine\event\Event->call()
#4 pmsrc/src/player/Player(1683): pocketmine\world\World->useItemOn(object pocketmine\math\Vector3#121775, object pocketmine\item\Dye#124452, int 1, object pocketmine\math\Vector3#123833, object pocketmine\player\Player#104410, true)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(441): pocketmine\player\Player->interactBlock(object pocketmine\math\Vector3#121775, int 1, object pocketmine\math\Vector3#123833)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(299): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#104291)
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(105): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#123504)
#8 pmsrc/src/network/mcpe/NetworkSession(388): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#100273)
#9 pmsrc/src/network/mcpe/NetworkSession(351): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#123504, string[97] .......B...........3.........display...Name....7Unhide player............zCr=.B.)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[94] c.abI.c`b`.......a..#..............Y\..X.......*.ph.yh^FfJ..H8.......r...v...sf.)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[103] .h...3... [email protected]<.$..v.i4..:.........nMBG)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#28723)
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#15 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1655993108.4468)
#16 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#18 pmsrc/src/PocketMine(327): pocketmine\server()
#19 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show