Class SecretSettingsConfig
java.lang.Object
nl.mtvehicles.core.infrastructure.models.MTVConfig
nl.mtvehicles.core.infrastructure.dataconfig.SecretSettingsConfig
Methods for supersecretsettings.yml.
Do not initialise this class directly. Use
Do not initialise this class directly. Use
ConfigModule.secretSettings
instead.-
Field Summary
Fields inherited from class nl.mtvehicles.core.infrastructure.models.MTVConfig
config, configType
-
Constructor Summary
ConstructorDescriptionDefault constructor - do not use this.
UseConfigModule.secretSettings
instead. -
Method Summary
Modifier and TypeMethodDescriptionGet config version.Get language used by the plugin.Get message files version.void
setMessagesLanguage(Language language)
Set language used by the pluginMethods inherited from class nl.mtvehicles.core.infrastructure.models.MTVConfig
getConfig, getConfiguration, reload, save, saveDefaultConfig, setConfigFile, setFileName
-
Constructor Details
-
SecretSettingsConfig
public SecretSettingsConfig()Default constructor - do not use this.
UseConfigModule.secretSettings
instead.
-
-
Method Details
-
getConfigVersion
Get config version.- See Also:
Main.configVersion
-
getMessagesVersion
Get message files version.- See Also:
Main.messagesVersion
-
getMessagesLanguage
Get language used by the plugin.- See Also:
Language
-
setMessagesLanguage
Set language used by the plugin- Parameters:
language
- New language- Throws:
IllegalArgumentException
- If language is specified as CUSTOM - custom language may only be set manually, not via this method.
-