menu
#10624026 Undefined array key "claim"

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 04:55:54 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 29 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux f88ac7c8-ce37-4465-8426-51ef1790b15e 5.15.0-97-generic #107-Ubuntu SMP Wed Feb 7 13:26:48 UTC 2024 x86_64

Error information

Warning: the HCF plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined array key "claim"
File: plugins/HCF-Main/src/hcf/events/types/PlayerListener
Line: #148
Type: ErrorException
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158

public function onBreak(BlockBreakEvent $event) : void {
$block = $event->getBlock();
$player = $event->getPlayer();
$claimName = Loader::getClaimManager()->getClaimName($block->getPosition());
if ($event->getPlayer()->isGod()) return;

$config = new Config(Loader::getInstance()->getDataFolder()."claim.yml", Config::YAML);

$claim = $config->getAll()["claim"];
foreach ($claim as $cp => $data) {
$name = $data["name"];
if ($claimName == $name) {
$event->cance();
$player->sendMessage("┬že You can't Break Blocks in this area!");
}
}
}

public function onPlace(BlockPlaceEvent $event) : void {
#0 plugins/HCF-Main/src/hcf/events/types/PlayerListener(148): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[27] Undefined array key "claim", string[72] /home/container/plugins/HCF-Main/src/hcf/events/types/PlayerListener.php, int 148)
#1 pmsrc/src/event/RegisteredListener(61): hcf\events\types\PlayerListener->onBreak(object pocketmine\event\block\BlockBreakEvent#195765)
#2 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\block\BlockBreakEvent#195765)
#3 pmsrc/src/world/World(2089): pocketmine\event\Event->call()
#4 pmsrc/src/player/Player(1795): pocketmine\world\World->useBreakOn(object pocketmine\math\Vector3#106788, object pocketmine\item\ItemBlock#195181, object hcf\player\Player#188280, true, array[0])
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(503): pocketmine\player\Player->breakBlock(object pocketmine\math\Vector3#102774)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(277): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#100353)
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/PlayerAuthInputPacket(296): pocketmine\network\mcpe\handler\InGamePacketHandler->handlePlayerAuthInput(object pocketmine\network\mcpe\protocol\PlayerAuthInputPacket#109835)
#8 pmsrc/src/network/mcpe/NetworkSession(456): pocketmine\network\mcpe\protocol\PlayerAuthInputPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#109967)
#9 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\PlayerAuthInputPacket#109835, string[111] ...dvAK....L~Cr=.B...C........K...............................K......L~Cr=.B...C)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(214): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[74] ..... ....e..M>u.E.3..<mpf...xCCC..F&&..L !....B$..X..X8.........&.i.`E...)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[83] .Z"[email protected]].0.......`.V.B3TV.....[`$09....R.(?sW=...$9..;...)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(107): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#188818)
#13 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#15 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#17 pmsrc/src/Server(1696): pocketmine\snooze\SleeperHandler->sleepUntil(float 1712120154.3862)
#18 pmsrc/src/Server(1066): pocketmine\Server->tickProcessor()
#19 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#20 pmsrc/src/PocketMine(373): pocketmine\server()
#21 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