Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Removed a unnecessary check
In "hasPermission" is the removed check already included
Dieser Commit ist enthalten in:
Ursprung
74ee716480
Commit
9dad1a7020
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren