Now the provider NONE does not balance when the player connects

This commit is contained in:
Jaime Martinez Rincon 2017-01-24 21:08:28 +01:00
parent cfc104fb11
commit f461e2070d

View File

@ -4,6 +4,7 @@ import me.jaimemartz.faucet.Messager;
import me.jaimemartz.lobbybalancer.LobbyBalancer;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
import me.jaimemartz.lobbybalancer.connection.ProviderType;
import me.jaimemartz.lobbybalancer.connection.ServerAssignRegistry;
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
import me.jaimemartz.lobbybalancer.section.ServerSection;
@ -51,6 +52,10 @@ public class ServerConnectListener implements Listener {
}
}
if (section.getProvider() == ProviderType.NONE) {
return;
}
new ConnectionIntent(plugin, player, section) {
@Override
public void connect(ServerInfo server) {