wip
This commit is contained in:
@@ -34,5 +34,26 @@ public interface QueueManager {
|
|||||||
*/
|
*/
|
||||||
ImmutableList<String> getServerNames();
|
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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,8 +11,9 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("net.kyori:adventure-api:4.8.1")
|
compileOnly("net.kyori:adventure-api:4.8.1")
|
||||||
|
compileOnly("com.google.guava:guava:30.1.1-jre")
|
||||||
|
|
||||||
implementation("us.ajg0702:ajQueue:")
|
implementation(project(":api"))
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
package us.ajg0702.queue.common;
|
||||||
|
|
||||||
|
import com.google.common.collect.ImmutableList;
|
||||||
|
import us.ajg0702.queue.api.QueueManager;
|
||||||
|
import us.ajg0702.queue.api.players.AdaptedPlayer;
|
||||||
|
import us.ajg0702.queue.api.queues.QueueServer;
|
||||||
|
|
||||||
|
public class QueueManagerImpl implements QueueManager {
|
||||||
|
@Override
|
||||||
|
public boolean addToQueue(AdaptedPlayer player, QueueServer server) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean addToQueue(AdaptedPlayer player, String serverName) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ImmutableList<QueueServer> getServers() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ImmutableList<String> getServerNames() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user