updated playtimer and teamtasks

This commit is contained in:
MineTec committed 2025-06-21 17:18:47 +02:00
1 parent 220fb9e229
commit 0d1e6070ce
9 files changed
+111 -31

No files matched your search

@@ -34,12 +34,12 @@ public class Countdown {
this.onDone = onDone;
this.defaultAnnouncements = count -> {
if(this.current > 60 && this.current % 60 == 0) {
return new AnnouncementData(this.current / 60, "Minuten");
if(count > 60 && count % 60 == 0) {
return new AnnouncementData(count / 60, "Minuten");
}
if(this.current <= 60 && (this.current <= 10 || this.current % 10 == 0)) {
return new AnnouncementData(this.current, "Sekunden");
if(count <= 60 && (count <= 10 || count % 10 == 0)) {
return new AnnouncementData(count, "Sekunden");
}
return null;
@@ -87,7 +87,7 @@ public class Countdown {
if(this.isDone()) {
this.onDone.run();
this.cancel();
this.cancelIfRunning();
}
}