menu
#10624399 Undefined array key "claims"

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 05:08:50 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 19 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 "claims"
File: plugins/HCF-Main/src/hcf/arena/Arena
Line: #16
Type: ErrorException
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

use pocketmine\Server;
use pocketmine\utils\Config;

class Arena {

public static function init(Player $player) : void {
$config = new Config(Loader::getInstance()->getDataFolder()."claims.yml", Config::YAML);

$claim = $config->getAll()["claims"];
foreach ($claim as $cp => $data) {
$name = $data["name"];
$x1 = $data["x1"];
$x2 = $data["x2"];
$z1 = $data["z1"];
$z2 = $data["z2"];
$world = $player->getWorld()->getDisplayName();

Loader::getClaimManager()->addClaim($name, $x1, $x2, $z1, $z2, $world);
}
#0 plugins/HCF-Main/src/hcf/arena/Arena(16): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[28] Undefined array key "claims", string[56] /home/container/plugins/HCF-Main/src/hcf/arena/Arena.php, int 16)
#1 plugins/HCF-Main/src/hcf/events/types/PlayerListener(55): hcf\arena\Arena::init(object hcf\player\Player#188222)
#2 pmsrc/src/event/RegisteredListener(61): hcf\events\types\PlayerListener->handleJoin(object pocketmine\event\player\PlayerJoinEvent#132033)
#3 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerJoinEvent#132033)
#4 pmsrc/src/player/Player(895): pocketmine\event\Event->call()
#5 pmsrc/src/network/mcpe/NetworkSession(864): pocketmine\player\Player->doFirstSpawn()
#6 pmsrc/src/network/mcpe/handler/SpawnResponsePacketHandler(37): pocketmine\network\mcpe\NetworkSession->onClientSpawnResponse()
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/SetLocalPlayerAsInitializedPacket(42): pocketmine\network\mcpe\handler\SpawnResponsePacketHandler->handleSetLocalPlayerAsInitialized(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#132496)
#8 pmsrc/src/network/mcpe/NetworkSession(456): pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket->handle(object pocketmine\network\mcpe\handler\SpawnResponsePacketHandler#137637)
#9 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#132496, string[2] q.)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(214): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[43] .c*d...............D3.A......&&.E`.z...e@..)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[52] .E..I....?.y.!{...8...k....b.......2Q..C.lP......jF.)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(107): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#188840)
#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 1712120930.7583)
#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