promotional bannermobile promotional banner

EconAPI

Ever needed a simple, clutter-free way to store player's balances between plugins? Then this is for you!

Ever needed a simple, clutter-free way to store player's balances between plugins? Then this is for you!

About

EconAPI is a clean and easy to use API that gives players with large plugins the ability to quickly and easily manage their economies and balances. With this plugin, you can easily get a player's 'Account' instance and manage their balances.

Commands/Permissions

None

Usage

// Get the EconAPI instance
EconAPI api = new EconAPI();

// Get the player's account
Account account = api.getAccount(p); 
// p is the instance of the current player

account.withdraw(100); 
// withdraw 100

account.deposit(20); 
// deposit 20

Integer balance = account.getBalance(); 
// get the accounts new balance

account.setBalance(200); 
// set the account balance to 200

The EconAPI Team

profile avatar
  • 17
    Projects
  • 45.1K
    Downloads

More from _ForgeUser11591311View all

  • FriendMe project image

    FriendMe

    • 32.9K
    • Bukkit Plugins

    FriendMe

    • 32.9K
    • April 16, 2015
    • Bukkit Plugins
    • +1
  • SQL API project image

    SQL API

    • 784
    • Bukkit Plugins

    MySQL API for Bukkit

    • 784
    • December 14, 2014
    • Bukkit Plugins
  • Mine Chatter project image

    Mine Chatter

    • 569
    • Bukkit Plugins

    Mine Chatter

    • 569
    • March 9, 2014
    • Bukkit Plugins
  • TeamAPI project image

    TeamAPI

    • 0
    • Bukkit Plugins

    Want to make simple minigames but aren't familiar with instances and constructors? Then this is the API for you!

    • 0
    • February 13, 2014
    • Bukkit Plugins
  • FriendMe project image

    FriendMe

    • 32.9K
    • Bukkit Plugins

    FriendMe

    • 32.9K
    • April 16, 2015
    • Bukkit Plugins
    • +1
  • SQL API project image

    SQL API

    • 784
    • Bukkit Plugins

    MySQL API for Bukkit

    • 784
    • December 14, 2014
    • Bukkit Plugins
  • Mine Chatter project image

    Mine Chatter

    • 569
    • Bukkit Plugins

    Mine Chatter

    • 569
    • March 9, 2014
    • Bukkit Plugins
  • TeamAPI project image

    TeamAPI

    • 0
    • Bukkit Plugins

    Want to make simple minigames but aren't familiar with instances and constructors? Then this is the API for you!

    • 0
    • February 13, 2014
    • Bukkit Plugins