This commit is contained in:
ajgeiss0702
2021-07-03 08:27:42 -07:00
parent c8562e0018
commit e10251048b
3 changed files with 51 additions and 1 deletions
@@ -34,5 +34,26 @@ public interface QueueManager {
*/
ImmutableList<String> getServerNames();
/**
* Get a single server the player is queued for. Depends on the multi-server-queue-pick option in the config
* @param player The player
* @return The server that was chosen that the player is queued for.
*/
QueueServer getSingleServer(AdaptedPlayer player);
/**
* Get the name of the server the player is queued for.
* If multiple servers are queued for, it will use the multi-server-queue-pick option in the config
* @param player The player
* @return The name of the server, the placeholder none message if not queued
*/
String getQueuedName(AdaptedPlayer player);
/**
* Checks servers that are in bungeecord and adds any it doesnt
* know about.
*
* Also creates/edits server groups
*/
void reloadServers();
}