The dummy behavior should only work if it is a normal connection, not section server

This commit is contained in:
Jaime Martinez Rincon 2017-01-26 14:10:03 +01:00
parent cc4819b57c
commit 5a9fb60c58

View File

@ -38,6 +38,10 @@ public class ServerConnectListener implements Listener {
}
if (section.getServers().contains(target)) {
if (section.isDummy()) {
return;
}
if (player.hasPermission("lobbybalancer.bypass")) {
msgr.send(ChatColor.RED + "You have not been moved because you have the lobbybalancer.bypass permission");
return;
@ -51,10 +55,6 @@ public class ServerConnectListener implements Listener {
}
}
if (section.isDummy()) {
return;
}
new ConnectionIntent(plugin, player, section) {
@Override
public void connect(ServerInfo server) {