removed 0's and fixed ranking and removed event winner badge
This commit is contained in:
@@ -26,6 +26,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
@@ -296,9 +297,6 @@ public class Facade {
|
||||
} else if (bannerID == 13) {
|
||||
bannerName = "Trial Admin";
|
||||
bannerURL = "https://unloze.com/images/badges/Junior-Admin_Badge.png";
|
||||
} else if (bannerID == 15) {
|
||||
bannerName = "Event Winner";
|
||||
bannerURL = "https://unloze.com/images/badges/Event-Winner.png";
|
||||
} else if (bannerID == 19) {
|
||||
bannerName = "Discord Manager";
|
||||
bannerURL = "https://unloze.com/images/badges/Discord-Manager.png";
|
||||
@@ -399,10 +397,23 @@ public class Facade {
|
||||
Collection<MapBoard> mapboards = mapBoardCache.values();
|
||||
for (MapBoard mapboard : mapboards) {
|
||||
//System.out.println("mapName: " + mapboard.getMapName());
|
||||
List<MapValues> mapvalues = new ArrayList(mapboard.getMapvalues());
|
||||
|
||||
List<MapValues> mapvalues = new ArrayList();
|
||||
List<MapValues> less_than_a_minute = new ArrayList<>();
|
||||
for (MapValues mv : mapboard.getMapvalues())
|
||||
{
|
||||
String time = mv.getTime();
|
||||
if (!time.contains(":"))
|
||||
{
|
||||
less_than_a_minute.add(mv);
|
||||
}
|
||||
else{
|
||||
mapvalues.add(mv);
|
||||
}
|
||||
}
|
||||
mapvalues.sort(Comparator.comparing(MapValues::getTime));
|
||||
mapBoardCache.get(mapboard.getMapName()).setMapvalues(mapvalues);
|
||||
less_than_a_minute.sort(Comparator.comparing(MapValues::getTime));
|
||||
less_than_a_minute.addAll(mapvalues);
|
||||
mapBoardCache.get(mapboard.getMapName()).setMapvalues(less_than_a_minute);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user