should fix priority players not getting added to the queue correctly

This commit is contained in:
ajgeiss0702
2020-05-05 17:12:10 -07:00
parent ed6e3380a9
commit 4872a3a65d
+4
View File
@@ -84,6 +84,7 @@ public class Main extends Plugin implements Listener {
offlineTime.put(server, ot);
for(ProxiedPlayer ply : plys) {
int pos = plys.indexOf(ply)+1;
if(pos == 0) continue;
int len = plys.size();
if(notif) {
String or = msgs.get("status.offline.restarting");
@@ -226,6 +227,9 @@ public class Main extends Plugin implements Listener {
}
i++;
}
if(list.size() == 0) {
list.add(p);
}
} else {
list.add(p);
}