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-12-19 17:50:45 +01:00
|
|
|
ChestShop.getBukkitLogger().severe("You haven't got any economy plugin or your economical plugin is not supported by the build-in system!");
|
|
|
|
ChestShop.getBukkitLogger().severe("Please download an economy plugin or, if your plugin is not recognised, download Vault.");
|
2012-03-06 19:41:14 +01:00
|
|
|
}
|
2012-01-25 16:32:34 +01:00
|
|
|
}
|