doc
This commit is contained in:
parent
2621210862
commit
b9a092153d
1 changed files with 2 additions and 0 deletions
|
|
@ -10,12 +10,14 @@ public interface EconomyService {
|
|||
int getCoins(UUID playerId);
|
||||
|
||||
/**
|
||||
* adds coins to the players account
|
||||
* @param playerId uuid of player
|
||||
* @throws IllegalArgumentException if amount is less than 0
|
||||
*/
|
||||
void depositCoins(UUID playerId, int amount);
|
||||
|
||||
/**
|
||||
* tries to take coins from the player's account or returns false on insufficient funds
|
||||
* @param playerId uuid of player
|
||||
* @return true on success, false on insufficient funds
|
||||
* @throws IllegalArgumentException if amount is less than 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue