add canJoinFull method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user