diff --git a/core-lib/src/main/java/de/kentoj/scrowlib/economy/EconomyService.java b/core-lib/src/main/java/de/kentoj/scrowlib/economy/EconomyService.java index d509120..2a24cc9 100644 --- a/core-lib/src/main/java/de/kentoj/scrowlib/economy/EconomyService.java +++ b/core-lib/src/main/java/de/kentoj/scrowlib/economy/EconomyService.java @@ -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