summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/api/IEconomy.java
blob: ab65b3b8238492db5b7cc01064ce223a6dd6042e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package net.ess3.api;


public interface IEconomy extends IReload
{
	double getMoney(String name) throws UserDoesNotExistException;

	void setMoney(String name, double balance) throws UserDoesNotExistException, NoLoanPermittedException;

	void resetBalance(String name) throws UserDoesNotExistException, NoLoanPermittedException;

	String format(double amount);

	boolean playerExists(String name);

	boolean isNPC(String name) throws UserDoesNotExistException;

	boolean createNPC(String name);

	void removeNPC(String name) throws UserDoesNotExistException;
}