Commit before modules

This commit is contained in:
Jaime Martínez Rincón 2017-10-07 18:30:59 +02:00
parent f84b6eb5f2
commit 8ad1717fd6
2 changed files with 3 additions and 3 deletions

View File

@ -65,13 +65,14 @@ public enum ProviderType {
@Override
public ServerInfo requestTarget(PlayerBalancer plugin, ServerSection section, List<ServerInfo> servers, ProxiedPlayer player) {
return provider.requestTarget(plugin, section, servers, player);
}
}
},
EXTERNAL {
@Override
public ServerInfo requestTarget(PlayerBalancer plugin, ServerSection section, List<ServerInfo> servers, ProxiedPlayer player) {
return section.getExternalProvider().requestTarget(plugin, section, servers, player);
AbstractProvider provider = section.getExternalProvider();
return provider.requestTarget(plugin, section, servers, player);
}
};

View File

@ -1,7 +1,6 @@
package com.jaimemartz.playerbalancer.connection.provider.types;
import com.jaimemartz.playerbalancer.PlayerBalancer;
import com.jaimemartz.playerbalancer.connection.ProviderType;
import com.jaimemartz.playerbalancer.connection.provider.AbstractProvider;
import com.jaimemartz.playerbalancer.ping.ServerStatus;
import com.jaimemartz.playerbalancer.section.ServerSection;