mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 03:44:57 +00:00
Lowercase commands before mute-block checking. Resolves #312
This commit is contained in:
parent
46cd88a18a
commit
2dd8e00201
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@ public class TFM_PlayerListener implements Listener
|
|||
{
|
||||
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.");
|
||||
event.setCancelled(true);
|
||||
|
|
Loading…
Reference in a new issue