menu
#7035038 Undefined array key "Samurai101029"

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:52:57 +0000 UTC
Server uptime: 0 days 0 hours 34 minutes 9 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux 494efd6f-a48f-46ec-98cf-868b830ab20c 5.17.7-xanmod1 #0~git20220512.bb1f4d4 SMP Thu May 12 20:57:26 UTC 2022 x86_64

Error information

Warning: the BetterHomes plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key "Samurai101029"
File: plugins/BetterHomes.phar/src/Electro/BetterHomes/BetterHomes
Line: #179
Error level: ErrorException
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
                $submitter->teleport(new Position($this->homes[$submitter->getName()][$homeName][0], $this->homes[$submitter->getName()][$homeName][1], $this->homes[$submitter->getName()][$homeName][2], $this->getServer()->getWorldManager()->getWorldByName($this->homes[$submitter->getName()][$homeName][3])));
$submitter->sendMessage("┬žaYou have successfully teleported to " . $homeName);
},
);
}

public function saveData(Player $player)
{
$playerHomes = new Config($this->getDataFolder() . "Players/" . $player->getName() . ".yml", Config::YAML);
$playerHomes->set("Homes", $this->homes[$player->getName()]);
$playerHomes->save();
}

public function saveAllData()
{
foreach ($this->homes as $player => $home) {
$playerHomes = new Config($this->getDataFolder() . "Players/" . $player . ".yml", Config::YAML);
$playerHomes->set("Homes", $home);
$playerHomes->save();
}
#0 plugins/BetterHomes.phar/src/Electro/BetterHomes/BetterHomes(179): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[35] Undefined array key "Samurai101029", string[87] phar:///home/container/plugins/BetterHomes.phar/src/Electro/BetterHomes/BetterHo, int 179)
#1 plugins/BetterHomes.phar/src/Electro/BetterHomes/BetterHomes(49): Electro\BetterHomes\BetterHomes->saveData(object pocketmine\player\Player#152649)
#2 pmsrc/src/event/RegisteredListener(60): Electro\BetterHomes\BetterHomes->onQuit(object pocketmine\event\player\PlayerQuitEvent#143804)
#3 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent#143804)
#4 pmsrc/src/player/Player(2100): pocketmine\event\Event->call()
#5 pmsrc/src/network/mcpe/NetworkSession(572): pocketmine\player\Player->onPostDisconnect(string[7] timeout, null)
#6 pmsrc/src/network/mcpe/NetworkSession(505): pocketmine\network\mcpe\NetworkSession->pocketmine\network\mcpe\{closure}()
#7 pmsrc/src/network/mcpe/NetworkSession(574): pocketmine\network\mcpe\NetworkSession->tryDisconnect(object Closure#156517, string[7] timeout)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(141): pocketmine\network\mcpe\NetworkSession->onClientDisconnect(string[7] timeout)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(75): pocketmine\network\mcpe\raklib\RakLibInterface->onClientDisconnect(int 1, string[7] timeout)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#118992)
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1655995977.2978)
#14 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#16 pmsrc/src/PocketMine(327): pocketmine\server()
#17 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show