Players should be restricted only when they are above position 0

This commit is contained in:
Jaime Martinez Rincon 2017-02-18 02:14:44 +01:00
parent 88a55271d5
commit 26e8239fac
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ public class FallbackCommand extends Command {
}
if (ConfigEntries.RECONNECT_KICK_RESTRICTED.get()) {
if (target.getPosition() < 0) {
if (section.getPosition() >= 0 && target.getPosition() < 0) {
return null;
}
}

View File

@ -83,7 +83,7 @@ public class ServerKickListener implements Listener {
}
if (ConfigEntries.RECONNECT_KICK_RESTRICTED.get()) {
if (target.getPosition() < 0) {
if (section.getPosition() >= 0 && target.getPosition() < 0) {
return null;
}
}

View File

@ -137,7 +137,7 @@ public class ServerSection {
}
}
//Returns iterations above parents
//Calculated iterations above parents
return iterations;
};