AzEconomy

Simple economy plugin designed for Pocketmine-MP servers, offering a multi-economy system.

AzEconomy

AzEconomy is a simple plugin designed for Pocketmine-MP servers, offering a multi-economy system.

Plugin is under development, if you find any bug, please report it.

Features

  • Multi-economy system
  • SQLite database
  • Multi-language system
  • FormAPI support

To do:

  • MySQL support
  • More...

Commands

CommandDescriptionPermission
/azeconomy currenciesShow your currenciesazeconomy.command.currencies
/azeconomy pay <player> <currency> <amount>Pay currency to a playerazeconomy.command.pay
/azeconomy set <player> <currency> <amount>Set currency to a playerazeconomy.command.set
/azeconomy take <player> <currency> <amount>Take currency to a playerazeconomy.command.add
/azeconomy give <player> <currency> <amount>Give currency to a playerazeconomy.command.remove
/azeconomy topShow top playersazeconomy.command.top

Events

EventDescription
EconomyTransactionEventCalled when a player's currency changes

API

Get Currency:

$callback = function(float $currency) : void {
    // Do something
};

EcoAPI::getCurrency(string $username, string $currency, callable $callback);

Get Currencies:

$callback = function(?BaseCurrencies $currency) : void {
    // Do something
};
EcoAPI::getCurrencies(string $username, callable $callback);

Set Currency:

$callback = function (bool $success) : void {
    // Do something
};

EcoAPI::setCurrency(string $username, string $currency, float $amount, $callback);

Add Currency:

$callback = function (bool $success) : void {
    // Do something
};

EcoAPI::addCurrency(string $username, string $currency, float $amount, $callback);

Remove Currency:

$callback = function (bool $success) : void {
    if(!$success) {
        // not enough currency
    }
};

EcoAPI::removeCurrency(string $username, string $currency, float $amount, $callback);

Details

Version: 1.0.1

Downloads: 1,304

Updated: 9/26/2023

Supported API versions: 5.0.0 to 5.27.1

Categories: Economy, API plugins

License: GPL-3.0

Producers

Collaborator