disabled usage of /minecraft: commands in 1..8
This commit is contained in:
parent
4eaa165826
commit
a47752cfe2
@ -134,9 +134,10 @@ public class Chat extends MiniPlugin
|
||||
public void preventMe(PlayerCommandPreprocessEvent event)
|
||||
{
|
||||
if (event.getMessage().toLowerCase().startsWith("/me ")
|
||||
|| event.getMessage().toLowerCase().startsWith("/bukkit"))
|
||||
|| event.getMessage().toLowerCase().startsWith("/bukkit")
|
||||
|| event.getMessage().toLowerCase().startsWith("/minecraft"))
|
||||
{
|
||||
event.getPlayer().sendMessage(F.main(getName(), "No, you!"));
|
||||
event.getPlayer().sendMessage(F.main(getName(), "Nope, not allowed!"));
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user