public class HytaleServerConfig
Class HytaleServerConfig. Provides hytaleserverconfig functionality for the Hytale server.
java.lang.Object > HytaleServerConfig
Field Summary
serverName
Field serverName.
motd
Field motd.
password
Field password.
maxPlayers
Field maxPlayers.
maxViewRadius
Field maxViewRadius.
localCompressionEnabled
Field localCompressionEnabled.
defaults
Field defaults.
connectionTimeouts
Field connectionTimeouts.
rateLimitConfig
Field rateLimitConfig.
playerStorageProvider
Field playerStorageProvider.
authCredentialStoreConfig
Field authCredentialStoreConfig.
displayTmpTagsInStrings
Field displayTmpTagsInStrings.
hytaleServerConfig
Field hytaleServerConfig.
config
Field config.
document
Field document.
enabled
Field enabled.
world
Field world.
gameMode
Field gameMode.
initialTimeout
Field initialTimeout.
authTimeout
Field authTimeout.
playTimeout
Field playTimeout.
packetsPerSecond
Field packetsPerSecond.
burstCapacity
Field burstCapacity.
requiredVersion
Field requiredVersion.
Method Detail
HytaleServerConfig
public
HytaleServerConfig
()
Method HytaleServerConfig.
getServerName
String
getServerName
()
Method getServerName.
setServerName
void
setServerName
(@Nonnull final String serverName)
Method setServerName.
- Parameters:
@Nonnull final StringserverName
getMotd
String
getMotd
()
Method getMotd.
setMotd
void
setMotd
(@Nonnull final String motd)
Method setMotd.
- Parameters:
@Nonnull final Stringmotd
getPassword
String
getPassword
()
Method getPassword.
setPassword
void
setPassword
(@Nonnull final String password)
Method setPassword.
- Parameters:
@Nonnull final Stringpassword
isDisplayTmpTagsInStrings
boolean
isDisplayTmpTagsInStrings
()
Method isDisplayTmpTagsInStrings.
setDisplayTmpTagsInStrings
void
setDisplayTmpTagsInStrings
(final boolean displayTmpTagsInStrings)
Method setDisplayTmpTagsInStrings.
- Parameters:
final booleandisplayTmpTagsInStrings
getMaxPlayers
int
getMaxPlayers
()
Method getMaxPlayers.
setMaxPlayers
void
setMaxPlayers
(final int maxPlayers)
Method setMaxPlayers.
- Parameters:
final intmaxPlayers
getMaxViewRadius
int
getMaxViewRadius
()
Method getMaxViewRadius.
setMaxViewRadius
void
setMaxViewRadius
(final int maxViewRadius)
Method setMaxViewRadius.
- Parameters:
final intmaxViewRadius
isLocalCompressionEnabled
boolean
isLocalCompressionEnabled
()
Method isLocalCompressionEnabled.
setLocalCompressionEnabled
void
setLocalCompressionEnabled
(final boolean localCompression)
Method setLocalCompressionEnabled.
- Parameters:
final booleanlocalCompression
getDefaults
Defaults
getDefaults
()
Method getDefaults.
setDefaults
void
setDefaults
(@Nonnull final Defaults defaults)
Method setDefaults.
- Parameters:
@Nonnull final Defaultsdefaults
getConnectionTimeouts
ConnectionTimeouts
getConnectionTimeouts
()
Method getConnectionTimeouts.
setConnectionTimeouts
void
setConnectionTimeouts
(@Nonnull final ConnectionTimeouts connectionTimeouts)
Method setConnectionTimeouts.
- Parameters:
@Nonnull final ConnectionTimeoutsconnectionTimeouts
getRateLimitConfig
RateLimitConfig
getRateLimitConfig
()
Method getRateLimitConfig.
setRateLimitConfig
void
setRateLimitConfig
(@Nonnull final RateLimitConfig rateLimitConfig)
Method setRateLimitConfig.
- Parameters:
@Nonnull final RateLimitConfigrateLimitConfig
getModules
Module>
getModules
()
Method getModules.
getModule
Module
getModule
(final String moduleName)
Method getModule.
- Parameters:
final StringmoduleName
Module
new
Module
(this)
Method Module.
- Parameters:
thisthis
setModules
void
setModules
(@Nonnull final Map modules)
Method setModules.
- Parameters:
@Nonnull final Mapmodules
getLogLevels
Level>
getLogLevels
()
Method getLogLevels.
setLogLevels
void
setLogLevels
(@Nonnull final Map logLevels)
Method setLogLevels.
- Parameters:
@Nonnull final MaplogLevels
getModConfig
ModConfig>
getModConfig
()
Method getModConfig.
setModConfig
void
setModConfig
(@Nonnull final Map modConfig)
Method setModConfig.
- Parameters:
@Nonnull final MapmodConfig
getPlayerStorageProvider
Method getPlayerStorageProvider.
setPlayerStorageProvider
Method setPlayerStorageProvider.
- Parameters:
@Nonnull final PlayerStorageProviderplayerStorageProvider
getAuthCredentialStoreProvider
Method getAuthCredentialStoreProvider.
setAuthCredentialStoreProvider
Method setAuthCredentialStoreProvider.
- Parameters:
@Nonnull final AuthCredentialStoreProviderprovider
removeModule
void
removeModule
(@Nonnull final String module)
Method removeModule.
- Parameters:
@Nonnull final Stringmodule
markChanged
void
markChanged
()
Method markChanged.
consumeHasChanged
boolean
consumeHasChanged
()
Method consumeHasChanged.
RuntimeException
new
RuntimeException
("Failed to load server config from " + String.valueOf(path)
Method RuntimeException.
- Parameters:
"Failed to load server config from " +String.valueOf(path
isEnabled
boolean
isEnabled
(final boolean def)
Method isEnabled.
- Parameters:
final booleandef
setEnabled
void
setEnabled
(final boolean enabled)
Method setEnabled.
- Parameters:
final booleanenabled
getEnabled
Boolean
getEnabled
()
Method getEnabled.
getDocument
BsonDocument
getDocument
()
Method getDocument.
setDocument
void
setDocument
(@Nonnull final BsonDocument document)
Method setDocument.
- Parameters:
@Nonnull final BsonDocumentdocument
setHytaleServerConfig
Method setHytaleServerConfig.
- Parameters:
@Nonnull final HytaleServerConfighytaleServerConfig
getWorld
String
getWorld
()
Method getWorld.
setWorld
void
setWorld
(final String world)
Method setWorld.
- Parameters:
final Stringworld
getInitialTimeout
Duration
getInitialTimeout
()
Method getInitialTimeout.
setInitialTimeout
void
setInitialTimeout
(final Duration initialTimeout)
Method setInitialTimeout.
- Parameters:
final DurationinitialTimeout
getAuthTimeout
Duration
getAuthTimeout
()
Method getAuthTimeout.
setAuthTimeout
void
setAuthTimeout
(final Duration authTimeout)
Method setAuthTimeout.
- Parameters:
final DurationauthTimeout
getPlayTimeout
Duration
getPlayTimeout
()
Method getPlayTimeout.
setPlayTimeout
void
setPlayTimeout
(final Duration playTimeout)
Method setPlayTimeout.
- Parameters:
final DurationplayTimeout
getJoinTimeouts
Duration>
getJoinTimeouts
()
Method getJoinTimeouts.
setJoinTimeouts
void
setJoinTimeouts
(final Map joinTimeouts)
Method setJoinTimeouts.
- Parameters:
final MapjoinTimeouts
KeyedCodec
new
KeyedCodec
("AuthTimeout", Codec.DURATION)
Method KeyedCodec.
- Parameters:
"AuthTimeout""AuthTimeout"Codec.DURATIONCodec.DURATION
getPacketsPerSecond
int
getPacketsPerSecond
()
Method getPacketsPerSecond.
setPacketsPerSecond
void
setPacketsPerSecond
(final int packetsPerSecond)
Method setPacketsPerSecond.
- Parameters:
final intpacketsPerSecond
getBurstCapacity
int
getBurstCapacity
()
Method getBurstCapacity.
setBurstCapacity
void
setBurstCapacity
(final int burstCapacity)
Method setBurstCapacity.
- Parameters:
final intburstCapacity
setBoot
void
setBoot
(final HytaleServerConfig serverConfig, final PluginIdentifier identifier, final boolean enabled)
Method setBoot.
- Parameters:
final HytaleServerConfigserverConfigfinal PluginIdentifieridentifierfinal booleanenabled
ModConfig
new
ModConfig
()
Method ModConfig.