aEconomy
Economy for MCPE
Events (Action types):
EconomyAddEvent
EconomyGiveEvent
EconomyReduceEvent
EconomySetEvent
$event->getAction();
$event->getSender(); // $event->getCommandSender()
$event->getAmount();
$event->setAmount(float $amount);
use AlexBrin\aEconomy
$economy = aEconomy::getInstance();
$economy->addMoney($player, float $amount);
$economy->reduceMoney($player, float $amount);
$economy->setMoney($player, float $amount);