Fixed config being case-sensitive.

This commit is contained in:
Boosik 2013-06-23 22:54:06 +02:00
parent 8880283b10
commit 245cf816c8
4 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
name: boosCooldowns
main: cz.boosik.boosCooldown.BoosCoolDown
version: 3.6.5
version: 3.6.6
authors: [LordBoos (ingame name boosik)]
softdepend: [Vault]
description: >

View File

@ -106,7 +106,7 @@ public class BoosCoolDownListener implements Listener {
}
Player player = event.getPlayer();
String originalCommand = event.getMessage().replace("\\", "\\\\");
originalCommand.trim().replaceAll(" +", " ").toLowerCase();
originalCommand = originalCommand.trim().replaceAll(" +", " ").toLowerCase();
String regexCommad = "";
Set<String> aliases = BoosConfigManager.getAliases();
Set<String> commands = BoosConfigManager.getCommands(player);

View File

@ -1,6 +1,6 @@
name: boosCooldowns
main: cz.boosik.boosCooldown.BoosCoolDown
version: 3.6.5
version: 3.6.6
authors: [LordBoos (ingame name boosik)]
softdepend: [Vault]
description: >