13
0
geforkt von Mirrors/Velocity

Merge pull request #143 from LartyHD/patch-1

Removed a unnecessary check
Dieser Commit ist enthalten in:
Andrew Steinborn 2018-11-22 00:02:38 -05:00 committet von GitHub
Commit cf5a244996
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);
}