Added a command to display remaining time
This commit is contained in:
parent
e83b811d34
commit
68304098fb
|
|
@ -80,4 +80,10 @@ public class EventManager {
|
||||||
)))));
|
)))));
|
||||||
server.sendMessage(message.get());
|
server.sendMessage(message.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Duration getTimeRemaining() {
|
||||||
|
if (duration == null)
|
||||||
|
return Duration.ofMillis(0);
|
||||||
|
return duration.minus(Duration.between(startTime, Instant.now()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user