Seperate sudo-queueing and normal queueing on spigot side. /queue <player> <server> on the spigot side now acts the same as /ajqueue send

This commit is contained in:
ajgeiss0702
2023-06-08 10:05:53 -07:00
parent 80289de371
commit 2414c698ed
6 changed files with 85 additions and 15 deletions
@@ -22,13 +22,20 @@ public abstract class AjQueueSpigotAPI {
public abstract Future<Boolean> isInQueue(UUID player);
/**
* Adds a player to a queue
* Adds a player to a queue (bypassing any permission checks that would prevent it)
* @param player The player to be added
* @param queueName The server or group to add the player to
* @return True if adding was successful, false if not.
*/
public abstract Future<Boolean> addToQueue(UUID player, String queueName);
/**
* Emulate the player running the queue command for a certain server, including any permission checks
* @param player The player to sudo the command for
* @param queueName The queue to send the player to
*/
public abstract void sudoQueue(UUID player, String queueName);
/**
* Gets the name of the queue that the player is in
* @param player the player