Hi, I want to create a plugin so that the player can buy something like a block. How can I allow the player to reduce the amount of money he has on the server a little and give it to the block?
PHP: $amount = (int);// EconomyAPI mainEconomyAPI::getInstance()->reduceMoney($player, $amount); // Reduce money PHP: $amount = (int);EconomyAPI::getInstance()->addMoney($player, $amount); // Add money