Skip to content
This repository has been archived by the owner on Aug 8, 2022. It is now read-only.
/ libEco Public archive

Make it easier for developers to use the economic plugin.

License

Notifications You must be signed in to change notification settings

Taylor-pm-pl/libEco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libEco

libEco is a PocketMine-MP virion that makes easy to use API of economy plugins!

Installation

You can get the compiled .phar file on poggit by clicking here.

Supports

Currently this library only supports BedrockEconomy and EconomyAPI.

Usage

LibEconomy makes using the economy plugins API easier!.

Check have any economy installed

use davidglitch04\libEco\libEco;
if(libEco::isInstall()){
// Installed
} else{
// No any eco
}

Get the money of a player

use davidglitch04\libEco\libEco;
libEco::myMoney($player, static function(float $money) : void {
	var_dump($money);
});

Add the money of a player

use davidglitch04\libEco\libEco;
libEco::addMoney($player, $amount);

Reduce the money of a player

use davidglitch04\libEco\libEco;
libEco::reduceMoney($player, $amount, static function(bool $success) : void {
	if($success){
		//TODO IF SUCCESS
	} else{
		//TODO IF FAIL
	}
});

About

Make it easier for developers to use the economic plugin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages