UniversalEconomy [API] 1.02

Hook into ANY economy plugin that uses flatfile. Even if it doesn't use Vault or has a API.

  1. l3st4tPlugins
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    UniversalEconomy

    Do you want to add economy rewards for a plugin but it doesn't have an API or Vault Support? Use UniversalEconomy!

    This API allows developers to hook into any economy plugin in existance as long it stores data in flatfile (SQLite and MySQL coming soon) and uses UUID (names coming soon).

    Commands & Permissions
    None. No player will know that you are using this plugin without access to /plugins.

    API

    UniversalEconomy.getInstance().getMoney(Player);
    Returns: Integer - Player's money.

    UniversalEconomy.getInstance().setMoney(Player, Integer);
    Returns: Nothing. Sets a player's money.

    UniversalEconomy.getInstance().removeMoney(Player, Integer);
    Returns: Boolean - Removes money from a player.
    True: The transaction was successful and player's money has been removed.
    False: The player doesn't have enough money.

    UniversalEconomy.getInstance().addMoney(Player, Integer);
    Returns: Nothing. Adds money to player.

    Config

    path: Data file's path.
    value: Where in the file the money is saved. %uuid% is replaced by player's UUID.

    Usage
    Only for server owners. Install the plugin before installing the plugin which asks for it. Set the path and value. Then install the plugin which requires this plugin.

    Plugins using this API
    Soulbind - Made by me.

    Hooks
    AdvancedAbilities