forked from External/mage
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:
parent
6dd99350a3
commit
6e4b06fc5b
6 changed files with 34 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue