mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-11-09 04:20:32 +01:00
The dummy behavior should only work if it is a normal connection, not section server
This commit is contained in:
parent
cc4819b57c
commit
5a9fb60c58
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user