From a47752cfe281493aa44db459ba83fa5ef0193ccd Mon Sep 17 00:00:00 2001 From: Cheese Date: Wed, 11 Nov 2015 12:49:19 +1100 Subject: [PATCH] disabled usage of /minecraft: commands in 1..8 --- Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java b/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java index 7847b0408..8954b07c0 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java @@ -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); } }