From b2ae63dc5377c488c6d4492006da7b2bfa7b07a8 Mon Sep 17 00:00:00 2001 From: Steven Lawson Date: Sat, 1 Dec 2012 17:01:41 -0500 Subject: [PATCH] I removed /clear and /socialspy from essentials, so we don't really need these. Not that it helped anyway, essentials had like 10 aliases for the /clear command that this woudn't have blocked. --- .../TotalFreedomMod/Listener/TFM_PlayerListener.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java index 39ec4f02..c3644739 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java +++ b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java @@ -465,7 +465,7 @@ public class TFM_PlayerListener implements Listener block_command = true; } } - else if (Pattern.compile("^/e?socialspy").matcher(command).find()) + else if (Pattern.compile("^/socialspy").matcher(command).find()) { if (!TFM_SuperadminList.isUserSuperadmin(p)) { @@ -480,10 +480,6 @@ public class TFM_PlayerListener implements Listener { block_command = true; } - else if (Pattern.compile("^/clear").matcher(command).find()) - { - block_command = true; - } } if (block_command)