diff --git a/buildnumber.properties b/buildnumber.properties index c9f7e50..33367ce 100644 --- a/buildnumber.properties +++ b/buildnumber.properties @@ -1,3 +1,3 @@ #Build Number for ANT. Do not edit! -#Mon May 11 22:29:09 CEST 2015 -build.number=1001 +#Mon May 11 22:50:58 CEST 2015 +build.number=1003 diff --git a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java index c7a5355..f3d18e8 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java +++ b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java @@ -654,7 +654,7 @@ public class TFM_PlayerListener implements Listener } } - @EventHandler(priority = EventPriority.HIGH) + @EventHandler(priority = EventPriority.HIGHEST) public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { String command = event.getMessage(); @@ -714,6 +714,7 @@ public class TFM_PlayerListener implements Listener { // CommandBlocker handles messages and broadcasts event.setCancelled(true); + event.setMessage(""); } if (!TFM_AdminList.isSuperAdmin(player)) diff --git a/src/me/StevenLawson/TotalFreedomMod/TFM_CommandBlocker.java b/src/me/StevenLawson/TotalFreedomMod/TFM_CommandBlocker.java index 07bb137..d165578 100644 --- a/src/me/StevenLawson/TotalFreedomMod/TFM_CommandBlocker.java +++ b/src/me/StevenLawson/TotalFreedomMod/TFM_CommandBlocker.java @@ -157,7 +157,6 @@ public class TFM_CommandBlocker } return true; - } public static enum CommandBlockerRank