Don't add US records twice

This commit is contained in:
cnr 2017-02-16 02:55:29 -06:00
parent 01e83f0646
commit b8ac877fa3

View File

@ -16,7 +16,6 @@ import java.util.logging.Logger;
import mineplex.bungee.api.ApiDeleteCall; import mineplex.bungee.api.ApiDeleteCall;
import mineplex.bungee.api.ApiGetCall; import mineplex.bungee.api.ApiGetCall;
import mineplex.bungee.api.ApiPostCall; import mineplex.bungee.api.ApiPostCall;
import mineplex.bungee.api.HttpCallBase;
import mineplex.bungee.api.token.ARecord; import mineplex.bungee.api.token.ARecord;
import mineplex.bungee.api.token.DnsRecord; import mineplex.bungee.api.token.DnsRecord;
import mineplex.bungee.api.token.DomainRecords; import mineplex.bungee.api.token.DomainRecords;
@ -25,8 +24,8 @@ import mineplex.serverdata.data.BungeeServer;
import mineplex.serverdata.data.DataRepository; import mineplex.serverdata.data.DataRepository;
import mineplex.serverdata.redis.RedisDataRepository; import mineplex.serverdata.redis.RedisDataRepository;
import mineplex.serverdata.servers.ConnectionData; import mineplex.serverdata.servers.ConnectionData;
import mineplex.serverdata.servers.ServerManager;
import mineplex.serverdata.servers.ConnectionData.ConnectionType; import mineplex.serverdata.servers.ConnectionData.ConnectionType;
import mineplex.serverdata.servers.ServerManager;
public class BungeeRotator public class BungeeRotator
{ {
@ -111,7 +110,7 @@ public class BungeeRotator
try try
{ {
List<BungeeServer> bungeeServers = new ArrayList<BungeeServer>(_repository.getElements()); List<BungeeServer> bungeeServers = new ArrayList<BungeeServer>(_repository.getElements());
bungeeServers.addAll(_secondRepository.getElements()); //bungeeServers.addAll(_secondRepository.getElements());
Collections.sort(bungeeServers, bungeeSorter); Collections.sort(bungeeServers, bungeeSorter);