diff --git a/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardPlayerListener.java b/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardPlayerListener.java index d198f9a1..38d67b3b 100644 --- a/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardPlayerListener.java +++ b/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardPlayerListener.java @@ -78,7 +78,7 @@ public class WorldGuardPlayerListener implements Listener { private static final Logger log = Logger.getLogger(WorldGuardPlayerListener.class.getCanonicalName()); - private static final Pattern opPattern = Pattern.compile("^/(?:minecraft:)(?:bukkit:)?op(?:\\s.*)?$", Pattern.CASE_INSENSITIVE); + private static final Pattern opPattern = Pattern.compile("^/(?:minecraft:)?(?:bukkit:)?(?:de)?op(?:\\s.*)?$", Pattern.CASE_INSENSITIVE); private WorldGuardPlugin plugin; /** @@ -487,7 +487,7 @@ public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { if (cfg.blockInGameOp) { if (opPattern.matcher(event.getMessage()).matches()) { - player.sendMessage(ChatColor.RED + "/op can only be used in console (as set by a WG setting)."); + player.sendMessage(ChatColor.RED + "/op and /deop can only be used in console (as set by a WG setting)."); event.setCancelled(true); return; }