should fix priority players not getting added to the queue correctly
This commit is contained in:
@@ -84,6 +84,7 @@ public class Main extends Plugin implements Listener {
|
|||||||
offlineTime.put(server, ot);
|
offlineTime.put(server, ot);
|
||||||
for(ProxiedPlayer ply : plys) {
|
for(ProxiedPlayer ply : plys) {
|
||||||
int pos = plys.indexOf(ply)+1;
|
int pos = plys.indexOf(ply)+1;
|
||||||
|
if(pos == 0) continue;
|
||||||
int len = plys.size();
|
int len = plys.size();
|
||||||
if(notif) {
|
if(notif) {
|
||||||
String or = msgs.get("status.offline.restarting");
|
String or = msgs.get("status.offline.restarting");
|
||||||
@@ -226,6 +227,9 @@ public class Main extends Plugin implements Listener {
|
|||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
if(list.size() == 0) {
|
||||||
|
list.add(p);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
list.add(p);
|
list.add(p);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user