t
This commit is contained in:
parent
8c196cb35f
commit
fdbbe55d50
@ -294,11 +294,11 @@ public class Game {
|
||||
|
||||
public String getNextTierString(int amount) {
|
||||
Map<Double, String> toCalculate = new HashMap<>();
|
||||
toCalculate.put(5D, "Diamond II");
|
||||
toCalculate.put(8D, "Emerald II");
|
||||
toCalculate.put(10D, "Diamond III");
|
||||
toCalculate.put(12D, "Emerald III");
|
||||
toCalculate.put(15D, "Diamond IV");
|
||||
toCalculate.put(5D, "&bDiamond &cII");
|
||||
toCalculate.put(8D, "&aEmerald &cII");
|
||||
toCalculate.put(10D, "&bDiamond &cIII");
|
||||
toCalculate.put(12D, "&aEmerald &cIII");
|
||||
toCalculate.put(15D, "&bDiamond &cIV");
|
||||
|
||||
for (Map.Entry<Double, String> entry : toCalculate.entrySet().stream().sorted(Comparator.comparingInt(key -> (key.getKey()).intValue())).collect(Collectors.toList())) {
|
||||
if (secondsToMinutes(amount) < entry.getKey()) {
|
||||
@ -306,7 +306,7 @@ public class Game {
|
||||
int minutesLeft = difference % 3600 / 60;
|
||||
int secondsLeft = difference % 60;
|
||||
|
||||
return entry.getValue() + ": " + String.format("%02d:%02d", minutesLeft, secondsLeft);
|
||||
return entry.getValue() + "&7: &d" + String.format("%02d:%02d", minutesLeft, secondsLeft);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user