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:20:22 -06:00
parent 8e96a75b56
commit 4ba73af883

View File

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