fix send instant not working on whitelisted server
This commit is contained in:
@@ -125,7 +125,7 @@ public class QueueManagerImpl implements QueueManager {
|
||||
int len = list.size();
|
||||
|
||||
boolean sendInstant = main.getConfig().getStringList("send-instantly").contains(server.getName()) || server.isJoinable(player);
|
||||
boolean sendInstantp = list.size() <= 1 && server.canAccess(player);
|
||||
boolean sendInstantp = list.size() <= 1 && server.isJoinable(player);
|
||||
boolean timeGood = !main.getConfig().getBoolean("check-last-player-sent-time") || System.currentTimeMillis() - server.getLastSentTime() > Math.floor(main.getConfig().getDouble("wait-time") * 1000);
|
||||
|
||||
if((sendInstant && (sendInstantp && timeGood))) {
|
||||
|
||||
@@ -170,7 +170,6 @@ public class QueueServerImpl implements QueueServer {
|
||||
List<UUID> uuids = new ArrayList<>();
|
||||
for(String uuid : serverPing.getPlainDescription().substring(20).split(",")) {
|
||||
if(uuid.isEmpty()) continue;
|
||||
main.getLogger().info("Adding uuid "+uuid+" to whitelist");
|
||||
uuids.add(UUID.fromString(uuid));
|
||||
}
|
||||
setWhitelistedPlayers(uuids);
|
||||
|
||||
Reference in New Issue
Block a user