menu
#9718830 Undefined array key "startX"

Submitted by PocketMine-MP 5.8.3+dev

General information

Version: 5.8.3+dev
Git commit: 0984aa67
Plugin involvement: Direct
Report date: 2023-12-03 05:39:41 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 12 seconds

System Information

PHP version: 8.1.23
JIT status: Not available
Operating system: linux
System banner: Linux AxeriaHost 5.4.0-162-generic #179-Ubuntu SMP Mon Aug 14 08:51:31 UTC 2023 x86_64

Error information

Warning: the WarpInteract plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined array key "startX"
File: plugins/WarpInteract/src/Main
Line: #80
Type: ErrorException
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
        $world = $block->getPosition()->getWorld();

// Get the list of warp data for this world
$warpDataList = $this->warpData->getAll();

foreach ($warpDataList as $warpID => $Pdata) {
foreach($Pdata as $data) {
// Check if the player's position matches any warp data
if (
$world->getFolderName() === $data["world"] and $data["startX"] <= $x and $data["maxX"] >= $x and $data["startY"] <= $y and $data["maxY"] >= $y and $data["startZ"] <= $z and $data["maxZ"] >= $z
) {
$dispatchCommand = $data["dispatchCommand"];
$player->sendMessage("┬žaYou interacted with warp $warpID. Executing command: $dispatchCommand");
// Execute the command on the player
$this->getServer()->dispatchCommand($player, $dispatchCommand);
return; // Stop checking for more warp data
}
}
}
}
#0 plugins/WarpInteract/src/Main(80): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[28] Undefined array key "startX", string[44] /root/surv/plugins/WarpInteract/src/Main.php, int 80)
#1 pmsrc/src/event/RegisteredListener(61): Rezvy\WarpInteract\Main->onInteract(object pocketmine\event\player\PlayerInteractEvent#119118)
#2 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerInteractEvent#119118)
#3 pmsrc/src/world/World(2152): pocketmine\event\Event->call()
#4 pmsrc/src/player/Player(1816): pocketmine\world\World->useItemOn(object pocketmine\math\Vector3#119102, object pocketmine\item\ItemBlock#119110, int 3, object pocketmine\math\Vector3#119111, object pocketmine\player\Player#107859, true, array[0])
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(490): pocketmine\player\Player->interactBlock(object pocketmine\math\Vector3#119102, int 3, object pocketmine\math\Vector3#119172)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(343): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#119063)
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(94): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#119071)
#8 pmsrc/src/network/mcpe/NetworkSession(445): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#135717)
#9 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#119071, string[37] .....S1......$..zFB..2@...?...?...?.^)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[45] c.a.V.c`b`.6db.aXp@...*7...F..-...;..........)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[54] ...b........!....0]........:I&..!H.;...Z".L.....q..Pz.)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#181868)
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#14 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#16 pmsrc/src/Server(1691): pocketmine\snooze\SleeperHandler->sleepUntil(float 1701581981.9757)
#17 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#18 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[11] /root/surv/, string[19] /root/surv/plugins/)
#19 pmsrc/src/PocketMine(364): pocketmine\server()
#20 pmsrc(11): require(string[55] phar:///root/surv/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show