Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
bdda84f333
Commit
765584bc9a
@ -35,6 +35,7 @@ public interface LaufbauState {
|
|||||||
void next();
|
void next();
|
||||||
|
|
||||||
default String eta(Player p, long start, int done, int total) {
|
default String eta(Player p, long start, int done, int total) {
|
||||||
|
if (done == 0) return "";
|
||||||
return new SimpleDateFormat(BauSystem.MESSAGE.parse("TIME", p)).format(Date.from(Instant.ofEpochMilli((System.currentTimeMillis() - start) / done * total)));
|
return new SimpleDateFormat(BauSystem.MESSAGE.parse("TIME", p)).format(Date.from(Instant.ofEpochMilli((System.currentTimeMillis() - start) / done * total)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren