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("/minecraft"))
|
||||
{
|
||||
event.getPlayer().sendMessage(F.main(getName(), "Nope, not allowed!"));
|
||||
event.setCancelled(true);
|
||||
if (!event.getPlayer().isOp())
|
||||
{
|
||||
event.getPlayer().sendMessage(F.main(getName(), "Nope, not allowed!"));
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user