Please make a proper threat description, 7 words is not quite enough to explain us what you want to do What economy plugin do you use? What part of the API usage do you not understand?
In case you're using EconomyS: https://github.com/onebone/EconomyS...PI/src/onebone/economyapi/EconomyAPI.php#L167
this should work for you get money: PHP: EconomyAPI::getInstance()->myMoney($player);//it should return the player's money(INT) add money: PHP: EconomyAPI::getInstance()->addMoney($player, $money);//$money must be numeric, ex: 1, 2, 3 Reduce money: PHP: EconomyAPI::getInstance()->reduceMoney($player, $money);//$money must be numeric, ex: 1, 2, 3 While $player is the Player object(pocketmine\Player) And Don't forget to use onebone\economyapi\EconomyAPI; so EconomyAPI:: can works And remember to install EconomyAPI first (Full tutorial)