Added CancelShutdown broadcast message
This commit is contained in:
parent
933ea496c8
commit
41152d7864
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user