From 167489823aad5828725fcac1dbab1c247f0b94f0 Mon Sep 17 00:00:00 2001 From: Luck Date: Fri, 9 Dec 2016 19:39:05 +0000 Subject: [PATCH] more lenient command blocking --- .../src/main/java/me/lucko/luckperms/bukkit/BukkitListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/BukkitListener.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/BukkitListener.java index d481d85b..dc1a7a92 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/BukkitListener.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/BukkitListener.java @@ -140,7 +140,7 @@ class BukkitListener extends AbstractListener implements Listener { .replace("spigot:", "") .replace("minecraft:", ""); - if (s.startsWith("op") || s.startsWith("deop")) { + if (s.equals("op") || s.startsWith("op ") || s.equals("deop") || s.startsWith("deop ")) { e.setCancelled(true); e.getPlayer().sendMessage(Message.OP_DISABLED.toString()); }