menu
#7863613 Undefined array key "WannMCXyz"

Submitted by PocketMine-MP 4.10.0

General information

Version: 4.10.0
Git commit: 0d5287bf
Plugin involvement: Direct
Report date: 2022-11-24 18:45:24 +0000 UTC
Server uptime: 0 days 0 hours 19 minutes 29 seconds

System Information

PHP version: 8.0.24
JIT status: Disabled
Operating system: linux
System banner: Linux 6beae387-4601-47c6-b55f-6fcc3e336c70 5.15.0-1021-azure #26~20.04.1-Ubuntu SMP Fri Sep 23 16:58:44 UTC 2022 x86_64

Error information

Warning: the BankUI plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key "WannMCXyz"
File: plugins/BankUI-2.phar/src/Electro/BankUI/BankUI
Line: #594
Error level: ErrorException
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
            $playerBankMoney->save();
}


}

public function saveData(Player $player)
{
$playerBankMoney = new Config($this->getDataFolder() . "Players/" . $player->getName() . ".yml", Config::YAML);
$playerBankMoney->set("Money", $this->playersMoney[$player->getName()]);
$playerBankMoney->set("Transactions", $this->playersTransactions[$player->getName()]);
$playerBankMoney->save();
}

public function saveAllData()
{
foreach ($this->playersMoney as $player => $amount) {
$playerBankMoney = new Config($this->getDataFolder() . "Players/" . $player . ".yml", Config::YAML);
$playerBankMoney->set("Money", $amount);
$playerBankMoney->save();
#0 plugins/BankUI-2.phar/src/Electro/BankUI/BankUI(594): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[31] Undefined array key "WannMCXyz", string[74] phar:///home/container/plugins/BankUI-2.phar/src/Electro/BankUI/BankUI.php, int 594)
#1 plugins/BankUI-2.phar/src/Electro/BankUI/BankUI(89): Electro\BankUI\BankUI->saveData(object pocketmine\player\Player#31454)
#2 pmsrc/src/event/RegisteredListener(60): Electro\BankUI\BankUI->onQuit(object pocketmine\event\player\PlayerQuitEvent#121333)
#3 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent#121333)
#4 pmsrc/src/player/Player(2127): pocketmine\event\Event->call()
#5 pmsrc/src/network/mcpe/NetworkSession(601): pocketmine\player\Player->onPostDisconnect(string[17] client disconnect, null)
#6 pmsrc/src/network/mcpe/NetworkSession(534): pocketmine\network\mcpe\NetworkSession->pocketmine\network\mcpe\{closure}()
#7 pmsrc/src/network/mcpe/NetworkSession(603): pocketmine\network\mcpe\NetworkSession->tryDisconnect(object Closure#121332, string[17] client disconnect)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(141): pocketmine\network\mcpe\NetworkSession->onClientDisconnect(string[17] client disconnect)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(75): pocketmine\network\mcpe\raklib\RakLibInterface->onClientDisconnect(int 0, string[17] client disconnect)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#28673)
#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(1707): pocketmine\snooze\SleeperHandler->sleepUntil(float 1669315524.1829)
#14 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#16 pmsrc/src/PocketMine(328): 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