Merge branch 'dev' of gitlab.com:ajg0702/ajqueue into dev

# Conflicts:
#	api/src/main/java/us/ajg0702/queue/api/queues/QueueServer.java
This commit is contained in:
ajgeiss0702
2021-10-09 11:34:41 -07:00
9 changed files with 58 additions and 11 deletions
@@ -3,6 +3,7 @@ package us.ajg0702.queue.api.commands;
import net.kyori.adventure.audience.Audience;
import us.ajg0702.queue.api.util.Handle;
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
public interface ICommandSender extends Handle, Audience {
boolean hasPermission(String permission);
boolean isPlayer();
@@ -13,7 +13,7 @@ import java.util.UUID;
/**
* Represents a server or a group that can be queued for
*/
@SuppressWarnings("unused")
@SuppressWarnings({"unused", "BooleanMethodIsAlwaysInverted"})
public interface QueueServer {
/**
@@ -238,6 +238,13 @@ public interface QueueServer {
*/
Balancer getBalancer();
/**
* Checks if the player can join this server even if its full
* @param player The player
* @return If the player can join this server if its full
*/
boolean canJoinFull(AdaptedPlayer player);
/**
* elliot is bad