Allow ops to use minecraft commands
This commit is contained in:
parent
b782f5ced9
commit
a0e79d87a2
@ -147,8 +147,11 @@ public class Chat extends MiniPlugin
|
|||||||
|| event.getMessage().toLowerCase().startsWith("/bukkit")
|
|| event.getMessage().toLowerCase().startsWith("/bukkit")
|
||||||
|| event.getMessage().toLowerCase().startsWith("/minecraft"))
|
|| event.getMessage().toLowerCase().startsWith("/minecraft"))
|
||||||
{
|
{
|
||||||
event.getPlayer().sendMessage(F.main(getName(), "Nope, not allowed!"));
|
if (!event.getPlayer().isOp())
|
||||||
event.setCancelled(true);
|
{
|
||||||
|
event.getPlayer().sendMessage(F.main(getName(), "Nope, not allowed!"));
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user