mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-10-27 14:00:00 +01:00
e87f5f4f11
- 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
39 lines
802 B
Java
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!");
|
|
}
|
|
}
|