menu
#7557087 Call to undefined method cooldogedev\BedrockEconomy\BedrockEconomy::myMoney()

Submitted by PocketMine-MP 4.9.0

General information

Version: 4.9.0
Git commit: 785dc712
Plugin involvement: Direct
Report date: 2022-09-22 23:50:50 +0000 UTC
Server uptime: 0 days 0 hours 5 minutes 26 seconds

System Information

PHP version: 8.0.22
JIT status: Disabled
Operating system: linux
System banner: Linux add92f43-70d9-4801-8f50-a13c1dfdf4ff 5.4.0-121-generic #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022 x86_64

Error information

Warning: the Stats plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method cooldogedev\BedrockEconomy\BedrockEconomy::myMoney()
File: plugins/Stats.phar/src/Stats/forms/UpgradeView
Line: #150
Error level: Error
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
		$buttons = 0;
$form = new SimpleForm(function (Player $player, $data) use ($configMan, $price, $options) {
/** @var Segundo $player */
if (!is_null($data) && is_numeric($data)) {
if ($this->inMax($player)) {
$player->sendMessage("§eVocê chegou no máximo para esse tipo de upgrade.");
} else if (isset($options["{$data}"])) {
$count = $options["{$data}"];
$nowPrice = ($count * $price);
$playerMoney = Main::getInstance()->getEconomy()->myMoney($player);
$view = null;
if ($nowPrice > $playerMoney) {
$view = new UpgradeView($this->type,"§cVocê não tem tp suficiente para a compra dos upgrades.\n");
} else {
if (Main::getInstance()->getEconomy()->reduceMoney($player, $nowPrice) == 1) {
$player->addUpgrade($count, $this->type);
$view = new UpgradeView($this->type,"§aVocê comprou com sucesso {$count} upgrades!\n");
} else {
$view = new UpgradeView($this->type,"§cOcorreu um erro na compra dos upgrades. Tente novamente!\n");
}
#0 plugins/Stats.phar/src/jojoe77777/FormAPI/Form(46): Stats\forms\UpgradeView->Stats\forms\{closure}(object Stats\Segundo#112692, int 0)
#1 pmsrc/src/player/Player(2011): jojoe77777\FormAPI\Form->handleResponse(object Stats\Segundo#112692, int 0)
#2 pmsrc/src/network/mcpe/handler/InGamePacketHandler(892): pocketmine\player\Player->onFormSubmit(int 4, int 0)
#3 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(63): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#282347)
#4 pmsrc/src/network/mcpe/NetworkSession(409): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#277721)
#5 pmsrc/src/network/mcpe/NetworkSession(372): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#282347, string[7] e...0..)
#6 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[10] cOead2.b..)
#7 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[19] .9.Y.!..u..f{......)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#26965)
#9 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#11 pmsrc/src/Server(1707): pocketmine\snooze\SleeperHandler->sleepUntil(float 1663890650.1572)
#12 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#13 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#14 pmsrc/src/PocketMine(328): pocketmine\server()
#15 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show