wip: balancer modes

This commit is contained in:
ajgeiss0702
2021-10-09 11:30:29 -07:00
parent a5957bd7cb
commit 5d76c2defb
4 changed files with 27 additions and 2 deletions
@@ -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