mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Lowercase commands before mute-block checking. Resolves #312
This commit is contained in:
parent
46cd88a18a
commit
2dd8e00201
@ -690,7 +690,7 @@ public class TFM_PlayerListener implements Listener
|
|||||||
{
|
{
|
||||||
for (String commandName : BLOCKED_MUTED_CMDS)
|
for (String commandName : BLOCKED_MUTED_CMDS)
|
||||||
{
|
{
|
||||||
if (Pattern.compile("^/" + commandName.toLowerCase() + " ").matcher(command).find())
|
if (Pattern.compile("^/" + commandName.toLowerCase() + " ").matcher(command.toLowerCase()).find())
|
||||||
{
|
{
|
||||||
player.sendMessage(ChatColor.RED + "That command is blocked while you are muted.");
|
player.sendMessage(ChatColor.RED + "That command is blocked while you are muted.");
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user