C
CurrencyAPI
No disponible
HerramientasVariosEconomíapocketmine
5visitas
0descargas
CurrencyAPI | PocketMine-MP
Two-way economic A.P.I. to create currencies on the one hand, and on the other the usual economic plugin PocketMine-MP 5
For create currency
Main:
use gft\cur\API;
/* ... / API::getCurrencyManager()->registerCurrency($main->getName(), new YourCurrency()); / ... */
Instead of YourCurrency the class of your currency Your Currency:
add($currencyName, $count); For remove from balance: $player->remove($currencyName, $count); For set balance: $player->set($currencyName, $count); For complete transaction: $player->transaction($currencyName, $count, $player); For get balance $count = $player->get($currencyName); Commands /[currency] - sell