Duplicate Regexp check removed, and now we check if password different

from username
This commit is contained in:
Xephi59
2015-06-28 02:06:51 +02:00
parent 8e010d467c
commit ac543df216
2 changed files with 2 additions and 7 deletions
@@ -58,7 +58,7 @@ public class ChangePasswordCommand implements CommandExecutor {
m.send(player, "password_error");
return true;
}
if (!args[1].matches(Settings.getPassRegex)) {
if (lowpass.equalsIgnoreCase(name)) {
m.send(player, "password_error");
return true;
}