more lenient command blocking

This commit is contained in:
Luck 2016-12-09 19:39:05 +00:00
parent d1426f1b37
commit 167489823a
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

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