This commit is contained in:
kento2 2026-07-07 08:20:33 +02:00
parent 2621210862
commit b9a092153d

View file

@ -10,12 +10,14 @@ public interface EconomyService {
int getCoins(UUID playerId); int getCoins(UUID playerId);
/** /**
* adds coins to the players account
* @param playerId uuid of player * @param playerId uuid of player
* @throws IllegalArgumentException if amount is less than 0 * @throws IllegalArgumentException if amount is less than 0
*/ */
void depositCoins(UUID playerId, int amount); 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 * @param playerId uuid of player
* @return true on success, false on insufficient funds * @return true on success, false on insufficient funds
* @throws IllegalArgumentException if amount is less than 0 * @throws IllegalArgumentException if amount is less than 0