Fixed whitelist/restricted not working well in groups

This commit is contained in:
ajgeiss0702
2023-06-06 09:09:54 -07:00
parent a99bd73614
commit 80289de371
3 changed files with 7 additions and 2 deletions
@@ -52,8 +52,6 @@ public class CommunicationManager {
if(response == null) return;
Debug.info("Responding with " + response);
main.getPlatformMethods().sendPluginMessage(
receivingPlayer,
s(response.getFrom()),
@@ -37,6 +37,11 @@ public class DefaultBalancer implements Balancer {
selectednum = online;
continue;
}
if(!selected.isJoinable(player) && sv.isJoinable(player)) {
selected = sv;
selectednum = online;
continue;
}
if(selectednum > online && sv.isJoinable(player)) {
selected = sv;
selectednum = online;