add canJoinFull method

This commit is contained in:
ajgeiss0702
2021-10-08 14:58:41 -07:00
parent 4d91663e20
commit 74ee9fcf0e
5 changed files with 17 additions and 7 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 {
/**
@@ -232,6 +232,13 @@ public interface QueueServer {
*/
void setSupportedProtocols(List<Integer> list);
/**
* 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