updated playtimer and teamtasks
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user