This commit is contained in:
ajgeiss0702
2021-07-09 18:24:54 -07:00
parent 61e91587a6
commit 7a6d97229a
19 changed files with 351 additions and 15 deletions
@@ -0,0 +1,8 @@
package us.ajg0702.queue.api;
import us.ajg0702.utils.common.Config;
public interface LogicGetter {
Logic constructLogic();
AliasManager constructAliasManager(Config config);
}
@@ -1,6 +1,9 @@
package us.ajg0702.queue.api;
import us.ajg0702.queue.api.players.AdaptedPlayer;
import us.ajg0702.queue.api.players.QueuePlayer;
import us.ajg0702.queue.api.queues.QueueServer;
import us.ajg0702.queue.api.server.AdaptedServer;
public interface PlatformMethods {
/**
@@ -10,7 +13,7 @@ public interface PlatformMethods {
* BungeeUtils.sendCustomData(p, "inqueue", "true");
* BungeeUtils.sendCustomData(p, "inqueueevent", "true");
*/
void sendJoinQueueChannelMessages();
void sendJoinQueueChannelMessages(QueueServer queueServer, QueuePlayer queuePlayer);
/**
* Sends a plugin message on the plugin messaging channel
@@ -1,10 +1,11 @@
package us.ajg0702.queue.api.server;
import us.ajg0702.queue.api.players.AdaptedPlayer;
import us.ajg0702.queue.api.util.Handle;
import java.util.concurrent.CompletableFuture;
public interface AdaptedServer {
public interface AdaptedServer extends Handle {
/**
* Gets the ServerInfo for this server
@@ -1,6 +1,8 @@
package us.ajg0702.queue.api.server;
public interface AdaptedServerInfo {
import us.ajg0702.queue.api.util.Handle;
public interface AdaptedServerInfo extends Handle {
/**
* Gets the name of the server
@@ -1,8 +1,9 @@
package us.ajg0702.queue.api.server;
import net.kyori.adventure.text.Component;
import us.ajg0702.queue.api.util.Handle;
public interface AdaptedServerPing {
public interface AdaptedServerPing extends Handle {
/**
* Gets the component of the description (aka MOTD)
* @return A compoent of the description