Package de.kentoj.scrow.bukkit
Interface EconomyService
public interface EconomyService
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<@NotNull Void> depositCoins(UUID playerId, int amount) reactor.core.publisher.Mono<@NotNull Integer> reactor.core.publisher.Mono<@NotNull Void> reactor.core.publisher.Mono<@NotNull Boolean> tryWithdrawCoins(UUID playerId, int amount)
-
Method Details
-
getCoins
- Throws:
IllegalArgumentException- if amount is less than 0
-
depositCoins
- Parameters:
playerId- uuid of player- Throws:
IllegalArgumentException- if amount is less than 0
-
tryWithdrawCoins
- Parameters:
playerId- uuid of player- Returns:
- true on success, false on insufficient funds
- Throws:
IllegalArgumentException- if amount is less than 0
-
setCoins
- Parameters:
playerId- uuid of player- Throws:
IllegalArgumentException- if amount is less than 0
-