mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-11-23 19:25:12 +01:00
Now the provider NONE does not balance when the player connects
This commit is contained in:
parent
cfc104fb11
commit
f461e2070d
@ -4,6 +4,7 @@ import me.jaimemartz.faucet.Messager;
|
|||||||
import me.jaimemartz.lobbybalancer.LobbyBalancer;
|
import me.jaimemartz.lobbybalancer.LobbyBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
|
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
|
||||||
|
import me.jaimemartz.lobbybalancer.connection.ProviderType;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ServerAssignRegistry;
|
import me.jaimemartz.lobbybalancer.connection.ServerAssignRegistry;
|
||||||
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
|
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
|
||||||
import me.jaimemartz.lobbybalancer.section.ServerSection;
|
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) {
|
new ConnectionIntent(plugin, player, section) {
|
||||||
@Override
|
@Override
|
||||||
public void connect(ServerInfo server) {
|
public void connect(ServerInfo server) {
|
||||||
|
Loading…
Reference in New Issue
Block a user