2012-01-25 16:32:34 +01:00
|
|
|
package com.Acrobot.ChestShop.Economy;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Acrobot
|
|
|
|
*/
|
|
|
|
public interface EcoPlugin {
|
2012-06-08 15:28:36 +02:00
|
|
|
boolean hasAccount(String player);
|
2012-03-17 15:00:25 +01:00
|
|
|
|
2012-06-08 15:28:36 +02:00
|
|
|
void add(String player, double amount);
|
2012-03-17 15:00:25 +01:00
|
|
|
|
2012-06-08 15:28:36 +02:00
|
|
|
void subtract(String player, double amount);
|
2012-03-17 15:00:25 +01:00
|
|
|
|
2012-06-08 15:28:36 +02:00
|
|
|
boolean hasEnough(String player, double amount);
|
2012-03-17 15:00:25 +01:00
|
|
|
|
2012-06-08 15:28:36 +02:00
|
|
|
double balance(String player);
|
2012-03-17 15:00:25 +01:00
|
|
|
|
2012-06-08 15:28:36 +02:00
|
|
|
String format(double amount);
|
2012-01-25 16:32:34 +01:00
|
|
|
}
|