13
0
geforkt von Mirrors/Velocity

Removed a unnecessary check

In "hasPermission" is the removed check already included
Dieser Commit ist enthalten in:
Lars Artmann 2018-11-22 05:54:05 +01:00 committet von GitHub
Ursprung 74ee716480
Commit 9dad1a7020
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -17,11 +17,6 @@ public class ShutdownCommand implements Command {
@Override
public void execute(CommandSource source, String @NonNull [] args) {
if (source != server.getConsoleCommandSource()) {
source
.sendMessage(TextComponent.of("You are not allowed to use this command.", TextColor.RED));
return;
}
server.shutdown(true);
}