libEco is a PocketMine-MP virion that makes easy to use API of economy plugins!
You can get the compiled .phar file on poggit by clicking here.
Currently this library only supports BedrockEconomy and EconomyAPI.
LibEconomy makes using the economy plugins API easier!.
use davidglitch04\libEco\libEco;
if(libEco::isInstall()){
// Installed
} else{
// No any eco
}
use davidglitch04\libEco\libEco;
libEco::myMoney($player, static function(float $money) : void {
var_dump($money);
});
use davidglitch04\libEco\libEco;
libEco::addMoney($player, $amount);
use davidglitch04\libEco\libEco;
libEco::reduceMoney($player, $amount, static function(bool $success) : void {
if($success){
//TODO IF SUCCESS
} else{
//TODO IF FAIL
}
});