2012-01-25 16:32:34 +01:00
|
|
|
package com.Acrobot.ChestShop.Economy;
|
|
|
|
|
2012-05-10 16:32:25 +02:00
|
|
|
import com.Acrobot.ChestShop.ChestShop;
|
|
|
|
|
2012-01-25 16:32:34 +01:00
|
|
|
/**
|
|
|
|
* @author Acrobot
|
|
|
|
*/
|
2012-11-25 23:34:21 +01:00
|
|
|
public class EconomyManager {
|
2012-01-25 16:32:34 +01:00
|
|
|
public boolean hasAccount(String player) {
|
2012-03-06 19:41:14 +01:00
|
|
|
printError();
|
2012-01-25 16:32:34 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void add(String player, double amount) {
|
2012-03-06 19:41:14 +01:00
|
|
|
printError();
|
2012-01-25 16:32:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void subtract(String player, double amount) {
|
2012-03-06 19:41:14 +01:00
|
|
|
printError();
|
2012-01-25 16:32:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean hasEnough(String player, double amount) {
|
2012-03-06 19:41:14 +01:00
|
|
|
printError();
|
2012-01-25 16:32:34 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public double balance(String player) {
|
2012-03-06 19:41:14 +01:00
|
|
|
printError();
|
2012-01-25 16:32:34 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String format(double amount) {
|
2012-03-06 19:41:14 +01:00
|
|
|
printError();
|
2012-01-25 16:32:34 +01:00
|
|
|
return null;
|
|
|
|
}
|
2012-03-17 15:00:25 +01:00
|
|
|
|
2012-03-06 19:41:14 +01:00
|
|
|
private static void printError() {
|
2012-05-10 16:32:25 +02:00
|
|
|
ChestShop.getBukkitLogger().severe("You haven't got any economy plugin!");
|
2012-03-06 19:41:14 +01:00
|
|
|
}
|
2012-01-25 16:32:34 +01:00
|
|
|
}
|