mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Properly cancel blocked commands
This commit is contained in:
parent
0d1ce072dc
commit
b167540ad7
@ -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 New Issue
Block a user