mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-26 09:57:35 +01:00
5908eb67fa
- Copied utilities from ChestShop-4 - Made code really, really nicer to read - Made every external plugin's wrapper a listener, so it listens to events instead of being hard-coded.
19 lines
357 B
Java
19 lines
357 B
Java
package com.Acrobot.ChestShop.Economy;
|
|
|
|
/**
|
|
* @author Acrobot
|
|
*/
|
|
public interface EcoPlugin {
|
|
boolean hasAccount(String player);
|
|
|
|
void add(String player, double amount);
|
|
|
|
void subtract(String player, double amount);
|
|
|
|
boolean hasEnough(String player, double amount);
|
|
|
|
double balance(String player);
|
|
|
|
String format(double amount);
|
|
}
|