Properly cancel blocked commands

This commit is contained in:
JeromSar 2015-05-11 23:05:21 +02:00
parent 0d1ce072dc
commit b167540ad7
3 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Mon May 11 22:29:09 CEST 2015 #Mon May 11 22:50:58 CEST 2015
build.number=1001 build.number=1003

View File

@ -654,7 +654,7 @@ public class TFM_PlayerListener implements Listener
} }
} }
@EventHandler(priority = EventPriority.HIGH) @EventHandler(priority = EventPriority.HIGHEST)
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event)
{ {
String command = event.getMessage(); String command = event.getMessage();
@ -714,6 +714,7 @@ public class TFM_PlayerListener implements Listener
{ {
// CommandBlocker handles messages and broadcasts // CommandBlocker handles messages and broadcasts
event.setCancelled(true); event.setCancelled(true);
event.setMessage("");
} }
if (!TFM_AdminList.isSuperAdmin(player)) if (!TFM_AdminList.isSuperAdmin(player))

View File

@ -157,7 +157,6 @@ public class TFM_CommandBlocker
} }
return true; return true;
} }
public static enum CommandBlockerRank public static enum CommandBlockerRank