allow changing the minimum ping time

This commit is contained in:
ajgeiss0702
2022-02-22 14:26:41 -07:00
parent 80779b6fe4
commit ff3170353f
2 changed files with 8 additions and 3 deletions
@@ -56,7 +56,7 @@ public class TaskManager {
updateTask = scheduleAtFixedRate(updateExecutor,
main.getQueueManager()::updateServers,
500L,
(long) (Math.max(main.getTimeBetweenPlayers()/2, 1)*1000L),
(long) (Math.max(main.getTimeBetweenPlayers()/2, main.getConfig().getDouble("minimum-ping-time"))*1000L),
TimeUnit.MILLISECONDS
);