ChestShop-3/com/Acrobot/ChestShop/Economy/EcoPlugin.java
Acrobot 5908eb67fa - Added API (let's start with simple things first)
- Copied utilities from ChestShop-4
- Made code really, really nicer to read
- Made every external plugin's wrapper a listener, so it listens to events instead of being hard-coded.
2012-06-08 15:28:36 +02:00

19 lines
357 B
Java

package com.Acrobot.ChestShop.Economy;
/**
* @author Acrobot
*/
public interface EcoPlugin {
boolean hasAccount(String player);
void add(String player, double amount);
void subtract(String player, double amount);
boolean hasEnough(String player, double amount);
double balance(String player);
String format(double amount);
}