Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Fixed the disableOperatorMechanicsConsole module.
Browse files Browse the repository at this point in the history
Former-commit-id: a7ae494
  • Loading branch information
PolskiStevek committed May 13, 2020
1 parent 8f1be7a commit 028e823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.ishift</groupId>
<artifactId>EpicGuard</artifactId>
<version>4.2.0</version>
<version>4.2.1</version>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ConsoleCommandListener implements Listener {
public void onConsoleCommand(ServerCommandEvent event) {
final String cmd = event.getCommand();

if (SpigotSettings.disableOperatorMechanicsConsole && (cmd.startsWith("/op") || cmd.startsWith("/deop") || cmd.startsWith("/minecraft:op") || cmd.startsWith("/minecraft:deop"))) {
if (SpigotSettings.disableOperatorMechanicsConsole && (cmd.startsWith("op") || cmd.startsWith("deop") || cmd.startsWith("minecraft:op") || cmd.startsWith("minecraft:deop"))) {
event.setCancelled(true);
event.getSender().sendMessage(MessageHelper.color(Messages.operatorDisabled));
}
Expand Down

0 comments on commit 028e823

Please sign in to comment.