menu
#294 Undefined array key 1

Submitted by PocketMine-MP 5.26.1+dev.2106

General information

Version: 5.26.1+dev.2106
Git commit: 4d592fdc
Plugin involvement: Direct
Report date: 2025-04-11 00:02:32 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.3.4
JIT status: Not available
Operating system: linux
System banner: Linux anmine.ru 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64

Error information

Warning: the GoFloating plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined array key 1
File: plugins/GoFloating/src/corndan/GoFloating/FloatingMain
Line: #22
Type: ErrorException
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class FloatingMain extends PluginBase
{

protected function onEnable(): void
{
$this->getServer()->getPluginManager()->registerEvents(new FloatingListener(), $this);
$config = new Config(FileSystem::config("floating.yml"), Config::YAML);

foreach ($config->getAll() as $coords => $data) {
[$x, $y, $z, $worldName] = explode(':', $coords);

$world = $this->getServer()->getWorldManager()->getWorldByName($worldName);
FloatingManager::register(new Position($x, $y, $z, $world), $data['texts'], $data['update'] ?? -1, $data['type'] ?? null);
}

$this->getScheduler()->scheduleRepeatingTask(new ClosureTask(function (): void {
foreach (FloatingManager::getAll() as $floating) {
if ($floating->getUpdate() === -1) {
continue;
}
#0 plugins/GoFloating/src/corndan/GoFloating/FloatingMain(22): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[21] Undefined array key 1, string[85] /home/anupdate/servers/s99/plugins/GoFloating/src/corndan/GoFloating/FloatingMai, int 22)
#1 pmsrc/src/plugin/PluginBase(119): corndan\GoFloating\FloatingMain->onEnable()
#2 pmsrc/src/plugin/PluginManager(463): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1507): pocketmine\plugin\PluginManager->enablePlugin(object corndan\GoFloating\FloatingMain#57770)
#4 pmsrc/src/Server(1124): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#62548)
#5 pmsrc/src/PocketMine(360): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[27] /home/anupdate/servers/s99/, string[35] /home/anupdate/servers/s99/plugins/)
#6 pmsrc/src/PocketMine(383): pocketmine\server()
#7 pmsrc(170): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPgsa4vT.tar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show