EconomyManagement plugin for Pocketmine-MP
EconomyPE is a Pocketmine-MP plugin that adds in basic economy features to your server! Such as a way to send(pay) money, see player balances and see the top balances on the server. For the OP(operator) you can remove, set and add money to users! Everything is configurable through the config yml. Both Json and MySQL are supported! Inspiration by EconomyAPI! Thank you OneBone!
ScoreHud is supported!
CustomScore: Tell Joshet18 to integrate EconomyPE into CustomScore. 😉
Tags:
{EconomyPE.balance}
/pay
economype.cmd.pay
defualt: true
/mymoney
economype.cmd.mymoney
default: true
/seemoney
economype.cmd.seemoney
default: true
/topmoney
economype.cmd.topmoney
default: true
/addmoney
economype.cmd.addmoney
default: op
/removemoney
economype.cmd.removemoney
default: op
/setmoney
economype.cmd.setmoney
default: op
Get the players balance:
Money::getInstance()->getMoneyPlayer($player);
Add money to a player balance:
Money::getInstance()->addMoney($player, $amount);
Remove money from a player balance:
Money::getInstance()->removeMoney($player, $amount);
Set the player balance:
Money::getInstance()->setMoney($player, $amount);
Check if the player exist:
Money::getInstance()->existPlayer($player);
Create a new player balance:
Money::getInstance()->createPlayer($player);