ChestShop-3/com/Acrobot/ChestShop/Economy/NoProvider.java
Acrobot e87f5f4f11 - Added a warning if spawn-radius isn't set to 0
- Deleted a few outdated plugins from built-in Register
- System.out -> System.err for errors
- Blocked buying if you're holding a sign in your hand (allows, for example, for sign editors to work)
- Updated Heroes package
- Fixed WG integration (no longer throws errors, but uses ugly workaround)
- Fixed a small bug in Register plugin loading message
- Removed version checking for OddItem, WorldGuard and LWC
2012-03-06 19:41:14 +01:00

39 lines
802 B
Java

package com.Acrobot.ChestShop.Economy;
/**
* @author Acrobot
*/
public class NoProvider implements EcoPlugin{
public boolean hasAccount(String player) {
printError();
return false;
}
public void add(String player, double amount) {
printError();
}
public void subtract(String player, double amount) {
printError();
}
public boolean hasEnough(String player, double amount) {
printError();
return false;
}
public double balance(String player) {
printError();
return 0;
}
public String format(double amount) {
printError();
return null;
}
private static void printError() {
System.err.println("[ChestShop] You haven't got any economy plugin!");
}
}