fix for command prevention routine (used by territoryEnemyDenyCommands and such) not properly covering commands with uppercase letters in them

This commit is contained in:
Brettflan 2012-02-19 08:21:03 -06:00
parent f182f70371
commit ff56162c12
1 changed files with 2 additions and 0 deletions

View File

@ -540,6 +540,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