mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-09-19 19:21:00 +02: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.getServers().contains(target)) {
|
||||||
|
if (section.isDummy()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.hasPermission("lobbybalancer.bypass")) {
|
if (player.hasPermission("lobbybalancer.bypass")) {
|
||||||
msgr.send(ChatColor.RED + "You have not been moved because you have the lobbybalancer.bypass permission");
|
msgr.send(ChatColor.RED + "You have not been moved because you have the lobbybalancer.bypass permission");
|
||||||
return;
|
return;
|
||||||
@ -51,10 +55,6 @@ public class ServerConnectListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (section.isDummy()) {
|
|
||||||
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