From 4ba73af883ba6c47da83d13a6a92b266e760cd29 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Sun, 19 Feb 2012 08:20:22 -0600 Subject: [PATCH] fix for command prevention routine (used by territoryEnemyDenyCommands and such) not properly covering commands with uppercase letters in them --- .../massivecraft/factions/listeners/FactionsPlayerListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/massivecraft/factions/listeners/FactionsPlayerListener.java b/src/com/massivecraft/factions/listeners/FactionsPlayerListener.java index ce62424c..1b266c31 100644 --- a/src/com/massivecraft/factions/listeners/FactionsPlayerListener.java +++ b/src/com/massivecraft/factions/listeners/FactionsPlayerListener.java @@ -344,6 +344,8 @@ public class FactionsPlayerListener implements Listener if ((Conf.territoryNeutralDenyCommands.isEmpty() && Conf.territoryEnemyDenyCommands.isEmpty() && Conf.permanentFactionMemberDenyCommands.isEmpty())) return false; + fullCmd = fullCmd.toLowerCase(); + FPlayer me = FPlayers.i.get(player); String shortCmd; // command without the slash at the beginning