menu
#7862582 Unsupported operand types: float - string

Submitted by PocketMine-MP 4.10.0

General information

Version: 4.10.0
Git commit: 0d5287bf
Plugin involvement: Direct
Report date: 2022-11-24 14:15:42 +0000 UTC
Server uptime: 0 days 1 hours 23 minutes 17 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: Unsupported operand types: float - string
File: plugins/BankUI-2.phar/src/Electro/BankUI/BankUI
Line: #526
Error level: TypeError
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
            $playerBankMoney->set("Money", $playerBankMoney->get("Money") + $amount);
$playerBankMoney->save();
}
}

public function takeMoney(string $player, $amount)
{
if ($this->getServer()->getPlayerExact($player) instanceof Player)
{
$this->playersMoney[$player] = $this->playersMoney[$player] - $amount;
}
else
{
$playerBankMoney = new Config($this->getDataFolder() . "Players/" . $player . ".yml", Config::YAML);
$playerBankMoney->set("Money", $playerBankMoney->get("Money") - $amount);
$playerBankMoney->save();
}
}

public function setMoney(string $player, $amount)
#0 plugins/BankUI-2.phar/src/Electro/BankUI/BankUI(248): Electro\BankUI\BankUI->takeMoney(string[9] Danzz9156, string[22] ..aWithdrew $100007000)
#1 plugins/BankUI-2.phar/src/Electro/BankUI/libs/Vecnavium/FormsUI/Form(46): Electro\BankUI\BankUI->Electro\BankUI\{closure}(object pocketmine\player\Player#140148, int 0)
#2 pmsrc/src/player/Player(2038): Electro\BankUI\libs\Vecnavium\FormsUI\Form->handleResponse(object pocketmine\player\Player#140148, int 0)
#3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(892): pocketmine\player\Player->onFormSubmit(int 47, int 0)
#4 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(63): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#150254)
#5 pmsrc/src/network/mcpe/NetworkSession(410): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#123774)
#6 pmsrc/src/network/mcpe/NetworkSession(373): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#150254, string[7] e/..0..)
#7 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[51] cO.gd2.b........p........_;....pf...xCC.........H..)
#8 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 2, string[60] ......k.5.g..p;...tk..\8.Z...>....RA.T.Y....d......(.k|<U.-.)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#29023)
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#12 pmsrc/src/Server(1707): pocketmine\snooze\SleeperHandler->sleepUntil(float 1669299342.337)
#13 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#14 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#15 pmsrc/src/PocketMine(328): pocketmine\server()
#16 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show