Added a command to display remaining time
This commit is contained in:
@@ -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()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user