This commit is contained in:
kento2 2026-04-17 21:19:10 +02:00
parent 3433e1d4df
commit 08129e7474
16 changed files with 439 additions and 153 deletions

View file

@ -27,7 +27,5 @@ public interface FriendsService {
/**
* @param from id of player sending the friend request
* @param to id of the player the initiator wants to befriend
* @throws FriendRequestUsageException
*/
Mono<@NotNull Friendship> sendFriendRequest(UUID from, UUID to);
}

View file

@ -11,7 +11,7 @@ public class OrderedUUIDPair {
private final UUID second;
public OrderedUUIDPair(UUID uuid1, UUID uuid2) {
Preconditions.checkArgument(uuid1 != uuid2);
Preconditions.checkArgument(uuid1 != uuid2, "UUIDPair may consist of identical UUIDs");
if (uuid1.compareTo(uuid2) < 0) {
this.first = uuid1;
this.second = uuid2;