Setup unrestricted names into lowercase.

This commit is contained in:
DNx5
2015-12-01 02:14:28 +07:00
parent e387a801f7
commit 8a6ab3edb5
2 changed files with 10 additions and 4 deletions
@@ -156,8 +156,9 @@ public final class Utils {
}
public static boolean isUnrestricted(Player player) {
return Settings.isAllowRestrictedIp && !Settings.getUnrestrictedName.isEmpty()
&& (Settings.getUnrestrictedName.contains(player.getName()));
return Settings.isAllowRestrictedIp
&& !Settings.getUnrestrictedName.isEmpty()
&& (Settings.getUnrestrictedName.contains(player.getName().toLowerCase()));
}
/**