Added server config values to check user name minimal and maximal length and allowed chars for user name. Set to 3-14 length and [^a-z0-9_] chars (ignoring case) .

This commit is contained in:
LevelX2 2013-04-13 14:21:42 +02:00
parent 6dd99350a3
commit 6e4b06fc5b
6 changed files with 34 additions and 2 deletions

View file

@ -83,6 +83,18 @@ public class ConfigSettings {
return config.getServer().getMaxSecondsIdle().intValue();
}
public int getMinUserNameLength() {
return config.getServer().getMinUserNameLength().intValue();
}
public int getMaxUserNameLength() {
return config.getServer().getMaxUserNameLength().intValue();
}
public String getUserNamePattern() {
return config.getServer().getUserNamePattern();
}
public List<Plugin> getPlayerTypes() {
return config.getPlayerTypes().getPlayerType();
}