progress
This commit is contained in:
@@ -7,11 +7,15 @@ group = "us.ajg0702.queue.api"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
maven { url = uri("https://repo.ajg0702.us") }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("net.kyori:adventure-api:4.8.1")
|
||||
compileOnly("com.google.guava:guava:30.1.1-jre")
|
||||
|
||||
compileOnly("us.ajg0702:ajUtils:1.1.6")
|
||||
}
|
||||
|
||||
publishing {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user