mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 03:24:58 +00:00
Properly cancel blocked commands
This commit is contained in:
parent
0d1ce072dc
commit
b167540ad7
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -157,7 +157,6 @@ public class TFM_CommandBlocker
|
|||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
public static enum CommandBlockerRank
|
||||
|
|
Loading…
Reference in a new issue