- Joined
- Jan 18, 2010
- Messages
- 3,109
- Reaction score
- 1,139
How do I make auto-register work? Yes I changed the value to public static final boolean autoRegister = true; in AutoRegister.java , and compiled / replaced jar. But it didn't work
AutoRegister should work if you make autoRegister = true.
In CharLoginHandler.java, make sure this isn't commented out:
PHP:
if (AutoRegister.getAccountExists(login) != false) {
loginok = c.login(login, pwd, isBanned);
} else if (AutoRegister.autoRegister != false && !isBanned) {
AutoRegister.createAccount(login, pwd, c.getSession().getRemoteAddress().toString());
if (AutoRegister.success != false) {
loginok = c.login(login, pwd, isBanned);
}
}