A Gems Economy Plugin For Pocketmine 5.0.0...
Name | Description | Usage | Permission |
---|---|---|---|
mygems | Show your gems | /mygems |
GemsAPI.cmd.use |
pay | Pay others with your balance | /pay <player: string> <amount: number> |
GemsAPI.cmd.use |
topgems | View the top player | /topgems |
GemsAPI.cmd.use |
addgems | Add gems to others balance | /addgems <player: string> <amount: number> |
GemsAPI.add.cmd |
removegems | Remove gems from others balance | /removegems <player: string> <amount: number> |
GemsAPI.remove.cmd |
setgems | setgems gems from others balance | /setgems <player: string> <amount: number> |
GemsAPI.set.cmd |
- ScoreHud Tag
gems.bal
use Biswajit\GemsAPI\GemsAPI;
GemsAPI::getInstance()->getGemsBalance($player->getName())
use Biswajit\GemsAPI\GemsAPI;
GemsAPI::getInstance()->giveGemsBalance($player->getName(), (float) $amount);
use Biswajit\GemsAPI\GemsAPI;
GemsAPI::getInstance()->takeGemsBalance($player->getName(), (float) $amount);
use Biswajit\GemsAPI\GemsAPI;
GemsAPI::getInstance()->getTopPlayerWithGems();
use Biswajit\GemsAPI\GemsAPI;
GemsAPI::getInstance()->setGems($player->getName(), (float) $amount);
use Biswajit\GemsAPI\GemsAPI;
GemsAPI::getInstance()->getallgems();