nozell/libeco
Composer 安装命令:
composer require nozell/libeco
包简介
Make it easier for developers to use the economic plugin
README 文档
README
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 } });
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2024-10-26