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

View File

@ -540,6 +540,8 @@ public class FactionsPlayerListener implements Listener
if ((Conf.territoryNeutralDenyCommands.isEmpty() && Conf.territoryEnemyDenyCommands.isEmpty() && Conf.permanentFactionMemberDenyCommands.isEmpty())) if ((Conf.territoryNeutralDenyCommands.isEmpty() && Conf.territoryEnemyDenyCommands.isEmpty() && Conf.permanentFactionMemberDenyCommands.isEmpty()))
return false; return false;
fullCmd = fullCmd.toLowerCase();
FPlayer me = FPlayers.i.get(player); FPlayer me = FPlayers.i.get(player);
String shortCmd; // command without the slash at the beginning String shortCmd; // command without the slash at the beginning