mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-12 13:53:54 +00:00
Properly cancel blocked commands
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user