Lowercase commands before mute-block checking. Resolves #312

This commit is contained in:
Jerom van der Sar 2015-04-27 00:58:27 +02:00
parent 46cd88a18a
commit 2dd8e00201

View file

@ -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);