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()); }