Added CancelShutdown broadcast message

This commit is contained in:
Elias Müller 2023-12-10 14:50:07 +01:00
parent 933ea496c8
commit 41152d7864

View File

@ -32,6 +32,7 @@ public class Restart extends Appliance {
public void cancelRestart() { public void cancelRestart() {
try { try {
this.countdown.cancel(); this.countdown.cancel();
this.announce(Component.text("Der geplante Serverneustart wurde abgebrochen!", NamedTextColor.RED));
} catch (IllegalStateException e) { } catch (IllegalStateException e) {
throw new ApplianceCommand.Error(e.getMessage()); throw new ApplianceCommand.Error(e.getMessage());
} }