From 9dad1a7020b7ecc86fb3340a40555fad393315d3 Mon Sep 17 00:00:00 2001 From: Lars Artmann Date: Thu, 22 Nov 2018 05:54:05 +0100 Subject: [PATCH] Removed a unnecessary check In "hasPermission" is the removed check already included --- .../com/velocitypowered/proxy/command/ShutdownCommand.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/command/ShutdownCommand.java b/proxy/src/main/java/com/velocitypowered/proxy/command/ShutdownCommand.java index e3e8d5d6d..ba94083c8 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/command/ShutdownCommand.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/command/ShutdownCommand.java @@ -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); }