public static class AuthConfig.MainConfig
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AuthConfig.MainConfig.MongoDBCredentials
Credentials for MongoDB database.
|
static class |
AuthConfig.MainConfig.WorldSpawn
Data for spawn (where deauthenticated players are teleported temporarily).
|
Modifier and Type | Field and Description |
---|---|
boolean |
allowEntityInteract
Allows "right-clicking" on an entity (e.g.
|
boolean |
enableGlobalPassword
Disables registering and forces logging in with global password.
|
java.util.ArrayList<java.lang.String> |
forcedOfflinePlayers
Contains a list of lower case (!) player names
that should always be treated as offline.
|
java.lang.String |
globalPassword
Hashed global password.
|
int |
kickTime
Time after which player will be kicked if not authenticated - in seconds
|
int |
maxLoginTries
Maximum login tries before kicking the player from server.
|
int |
maxPasswordChars
Maximum length of password.
|
int |
minPasswordChars
Minimum length of password.
|
boolean |
premiumAutologin
Whether players who have a valid session should skip the authentication process.
|
int |
sessionTimeoutTime
How long to keep session (auto-logging in the player), in seconds
Set to -1 to disable
|
boolean |
spawnOnJoin
Whether to tp player to spawn when joining (to hide original player coordinates).
|
boolean |
tryPortalRescue
Tries to rescue players if they are stuck inside a portal on logging in.
|
boolean |
useMongoDB
Whether to use MongoDB instead of LevelDB.
|
java.lang.String |
usernameRegex
Regex of valid playername characters.
|
Constructor and Description |
---|
MainConfig() |
public boolean allowEntityInteract
public int maxLoginTries
public int kickTime
public boolean enableGlobalPassword
public java.lang.String globalPassword
public boolean tryPortalRescue
public int minPasswordChars
public int maxPasswordChars
public java.lang.String usernameRegex
public int sessionTimeoutTime
public boolean spawnOnJoin
public boolean useMongoDB
public boolean premiumAutologin
public java.util.ArrayList<java.lang.String> forcedOfflinePlayers