Merge pull request #143 from LartyHD/patch-1

Removed a unnecessary check
This commit is contained in:
Andrew Steinborn
2018-11-22 00:02:38 -05:00
committed by GitHub

View File

@@ -17,11 +17,6 @@ public class ShutdownCommand implements Command {
@Override @Override
public void execute(CommandSource source, String @NonNull [] args) { 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); server.shutdown(true);
} }