summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/api/IEssentialsEconomy.java
blob: 72fb89d2622a654c905080784bf52a5d8b7d52cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.earth2me.essentials.api;


public interface IEssentialsEconomy
{
	double getMoney(String name) throws UserDoesNotExistException;

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

	void add(String name, double amount) throws UserDoesNotExistException, NoLoanPermittedException;

	void subtract(String name, double amount) throws UserDoesNotExistException, NoLoanPermittedException;

	void divide(String name, double value) throws UserDoesNotExistException, NoLoanPermittedException;

	void multiply(String name, double value) throws UserDoesNotExistException, NoLoanPermittedException;

	void resetBalance(String name) throws UserDoesNotExistException, NoLoanPermittedException;

	boolean hasEnough(String name, double amount) throws UserDoesNotExistException;

	boolean hasMore(String name, double amount) throws UserDoesNotExistException;

	boolean hasLess(String name, double amount) throws UserDoesNotExistException;

	boolean isNegative(String name) throws UserDoesNotExistException;

	String format(double amount);

	boolean playerExists(String name);

	boolean isNPC(String name) throws UserDoesNotExistException;

	boolean createNPC(String name);

	void removeNPC(String name) throws UserDoesNotExistException;
}