From 5a9fb60c58d557ced59d127bc3d6d08adec14c00 Mon Sep 17 00:00:00 2001 From: Jaime Martinez Rincon Date: Thu, 26 Jan 2017 14:10:03 +0100 Subject: [PATCH] The dummy behavior should only work if it is a normal connection, not section server --- .../lobbybalancer/listener/ServerConnectListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/jaimemartz/lobbybalancer/listener/ServerConnectListener.java b/src/main/java/me/jaimemartz/lobbybalancer/listener/ServerConnectListener.java index 585844b..f8a3ae4 100644 --- a/src/main/java/me/jaimemartz/lobbybalancer/listener/ServerConnectListener.java +++ b/src/main/java/me/jaimemartz/lobbybalancer/listener/ServerConnectListener.java @@ -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) {