manually add one to player count when balancing players
This commit is contained in:
@@ -608,6 +608,7 @@ public class QueueManagerImpl implements QueueManager {
|
||||
}
|
||||
server.setLastSentTime(System.currentTimeMillis());
|
||||
nextPlayer.connect(selected);
|
||||
server.addPlayer(selected);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -453,4 +453,10 @@ public class QueueServerImpl implements QueueServer {
|
||||
player.hasPermission("ajqueue.joinfullandbypassserver."+name) ||
|
||||
player.hasPermission("ajqueue.joinfullandbypass");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addPlayer(AdaptedServer server) {
|
||||
if(!pings.containsKey(server)) throw new IllegalArgumentException("Server is not in this group!");
|
||||
pings.get(server).addPlayer();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user