progress
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package us.ajg0702.queue.api;
|
||||
|
||||
import us.ajg0702.queue.api.players.AdaptedPlayer;
|
||||
|
||||
public interface EventHandler {
|
||||
void handleMessage(AdaptedPlayer reciever, byte[] data);
|
||||
}
|
||||
@@ -1,10 +1,13 @@
|
||||
package us.ajg0702.queue.api;
|
||||
|
||||
import us.ajg0702.queue.api.commands.IBaseCommand;
|
||||
import us.ajg0702.queue.api.commands.ICommandSender;
|
||||
import us.ajg0702.queue.api.players.AdaptedPlayer;
|
||||
import us.ajg0702.queue.api.players.QueuePlayer;
|
||||
import us.ajg0702.queue.api.queues.QueueServer;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface PlatformMethods {
|
||||
/**
|
||||
* BungeeUtils.sendCustomData(p, "position", pos+"");
|
||||
@@ -33,4 +36,14 @@ public interface PlatformMethods {
|
||||
|
||||
String getPluginVersion();
|
||||
|
||||
List<AdaptedPlayer> getOnlinePlayers();
|
||||
List<String> getPlayerNames(boolean lowercase);
|
||||
AdaptedPlayer getPlayer(String name);
|
||||
|
||||
List<String> getServerNames();
|
||||
|
||||
|
||||
List<IBaseCommand> getCommands();
|
||||
|
||||
ICommandSender constructSender(AdaptedPlayer player);
|
||||
}
|
||||
|
||||
@@ -64,4 +64,10 @@ public interface AdaptedPlayer extends Handle, Audience {
|
||||
* Does not use the queue.
|
||||
*/
|
||||
void connect(AdaptedServer server);
|
||||
|
||||
/**
|
||||
* Gets the player's username
|
||||
* @return the player's username
|
||||
*/
|
||||
String getName();
|
||||
}
|
||||
|
||||
@@ -50,4 +50,10 @@ public interface QueuePlayer {
|
||||
* Gets if this player has priority
|
||||
*/
|
||||
boolean hasPriority();
|
||||
|
||||
/**
|
||||
* Gets the player's username
|
||||
* @return the player's username
|
||||
*/
|
||||
String getName();
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package us.ajg0702.queue.api.server;
|
||||
import us.ajg0702.queue.api.players.AdaptedPlayer;
|
||||
import us.ajg0702.queue.api.util.Handle;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@@ -36,4 +37,5 @@ public interface AdaptedServer extends Handle {
|
||||
@SuppressWarnings("SameReturnValue")
|
||||
boolean canAccess(AdaptedPlayer player);
|
||||
|
||||
List<AdaptedPlayer> getPlayers();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user