mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-11-09 04:20:32 +01:00
Players should be restricted only when they are above position 0
This commit is contained in:
parent
88a55271d5
commit
26e8239fac
@ -54,7 +54,7 @@ public class FallbackCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ConfigEntries.RECONNECT_KICK_RESTRICTED.get()) {
|
if (ConfigEntries.RECONNECT_KICK_RESTRICTED.get()) {
|
||||||
if (target.getPosition() < 0) {
|
if (section.getPosition() >= 0 && target.getPosition() < 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ public class ServerKickListener implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ConfigEntries.RECONNECT_KICK_RESTRICTED.get()) {
|
if (ConfigEntries.RECONNECT_KICK_RESTRICTED.get()) {
|
||||||
if (target.getPosition() < 0) {
|
if (section.getPosition() >= 0 && target.getPosition() < 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,7 @@ public class ServerSection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Returns iterations above parents
|
//Calculated iterations above parents
|
||||||
return iterations;
|
return iterations;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user