.
This commit is contained in:
parent
d4370de78c
commit
c234c600fe
6 changed files with 30 additions and 40 deletions
|
|
@ -36,9 +36,9 @@ dependencies {
|
|||
api("org.spigotmc:spigot-api:1.21.11-R0.1-SNAPSHOT")
|
||||
api("net.kyori:adventure-platform-bukkit:4.4.1")
|
||||
|
||||
api("de.kentoj:kencommandapi-core:2.0.2")
|
||||
implementation("de.kentoj:kencommandapi-bukkit:2.0.2")
|
||||
api("de.kentoj:kencommandapi-bukkit:2.0.2")
|
||||
api("de.kentoj.scrow:kencommandapi-core:0.2")
|
||||
implementation("de.kentoj.scrow:kencommandapi-bukkit:0.2")
|
||||
api("de.kentoj.scrow:kencommandapi-bukkit:0.2")
|
||||
}
|
||||
|
||||
publishing {
|
||||
|
|
|
|||
|
|
@ -8,26 +8,26 @@ import java.util.UUID;
|
|||
public interface EconomyService {
|
||||
|
||||
/**
|
||||
* @throws IllegalArgumentException if amount < 0
|
||||
* @throws IllegalArgumentException if amount is less than 0
|
||||
*/
|
||||
Mono<@NotNull Integer> getCoins(UUID playerId);
|
||||
|
||||
/**
|
||||
* @param playerId uuid of player
|
||||
* @throws IllegalArgumentException if amount < 0
|
||||
* @throws IllegalArgumentException if amount is less than 0
|
||||
*/
|
||||
Mono<@NotNull Void> depositCoins(UUID playerId, int amount);
|
||||
|
||||
/**
|
||||
* @param playerId uuid of player
|
||||
* @return true on success, false on insufficient funds
|
||||
* @throws IllegalArgumentException if amount < 0
|
||||
* @throws IllegalArgumentException if amount is less than 0
|
||||
*/
|
||||
Mono<@NotNull Boolean> tryWithdrawCoins(UUID playerId, int amount);
|
||||
|
||||
/**
|
||||
* @param playerId uuid of player
|
||||
* @throws IllegalArgumentException if amount < 0
|
||||
* @throws IllegalArgumentException if amount is less than 0
|
||||
*/
|
||||
Mono<@NotNull Void> setCoins(UUID playerId, int amount);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
package de.kentoj.scrow.bukkit.friends;
|
||||
|
||||
public class FriendRequestUsageException extends RuntimeException {
|
||||
|
||||
public FriendRequestUsageException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public FriendRequestUsageException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
}
|
||||
|
|
@ -10,22 +10,9 @@ public interface FriendsService {
|
|||
|
||||
Flux<@NotNull Friendship> getFriendships(UUID playerId);
|
||||
|
||||
/**
|
||||
* @param initiator id of player who wished to end the friendship
|
||||
* @param other id of the player the initiator wants to end the friendship with
|
||||
* @throws FriendRequestUsageException
|
||||
*/
|
||||
Mono<@NotNull Boolean> removeFriend(Friendship friendship);
|
||||
|
||||
/**
|
||||
* @param playerId
|
||||
*/
|
||||
Flux<@NotNull FriendRequest> getIncomingFriendRequests(UUID playerId);
|
||||
|
||||
Flux<@NotNull FriendRequest> getOutgoingFriendRequests(UUID playerId);
|
||||
|
||||
/**
|
||||
* @param from id of player sending the friend request
|
||||
* @param to id of the player the initiator wants to befriend
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue