Closed QueenMedusa404 closed 2 years ago
Send the error please.
Bug when withdraw all money
Bug when withdraw all money
Send the error..
Code: [585] $playerBankMoney->save(); [586] } [587] [588] [589] } [590] [591] public function saveData(Player $player) [592] { [593] $playerBankMoney = new Config($this->getDataFolder() . "Players/" . $player->getName() . ".yml", Config::YAML); [594] $playerBankMoney->set("Money", $this->playersMoney[$player->getName()]); [595] $playerBankMoney->set("Transactions", $this->playersTransactions[$player->getName()]); [596] $playerBankMoney->save(); [597] } [598] [599] public function saveAllData() [600] { [601] foreach ($this->playersMoney as $player => $amount) { [602] $playerBankMoney = new Config($this->getDataFolder() . "Players/" . $player . ".yml", Config::YAML); [603] $playerBankMoney->set("Money", $amount); [604] $playerBankMoney->save();
Backtrace:
Can you send the error you get in console, not crashdump please.
I can't because when the server is closed it restarts by itself
I can't because when the server is closed it restarts by itself
Scroll up?
what i got from console TypeError: "Unsupported operand types: int - string " (EXCEPTION) in "plugins/BankUi (2).phar/src/Electro/BankUi/BankUi" at line 526 --- Stack trace ---
maybe you can fix it
The update is live! Until it gets approved, you can download it from here; https://poggit.pmmp.io/r/176036/BankUI_dev-66.phar
Good plugin but your must fix this.. Problem in pm4 1.18.10