more lenient command blocking
This commit is contained in:
parent
d1426f1b37
commit
167489823a
@ -140,7 +140,7 @@ class BukkitListener extends AbstractListener implements Listener {
|
|||||||
.replace("spigot:", "")
|
.replace("spigot:", "")
|
||||||
.replace("minecraft:", "");
|
.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.setCancelled(true);
|
||||||
e.getPlayer().sendMessage(Message.OP_DISABLED.toString());
|
e.getPlayer().sendMessage(Message.OP_DISABLED.toString());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user