wip: balancer modes
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package us.ajg0702.queue.api.queues;
|
||||
|
||||
import us.ajg0702.queue.api.players.AdaptedPlayer;
|
||||
import us.ajg0702.queue.api.server.AdaptedServer;
|
||||
|
||||
public interface Balancer {
|
||||
AdaptedServer getIdealServer(AdaptedPlayer player);
|
||||
}
|
||||
@@ -232,6 +232,12 @@ public interface QueueServer {
|
||||
*/
|
||||
void setSupportedProtocols(List<Integer> list);
|
||||
|
||||
/**
|
||||
* Gets the balancer this server is using
|
||||
* @return The balancer this server is using
|
||||
*/
|
||||
Balancer getBalancer();
|
||||
|
||||
|
||||
/**
|
||||
* elliot is bad
|
||||
|
||||
Reference in New Issue
Block a user