ConfigurationHolder

Holds the current configurations.

Properties

Link copied to clipboard

remoteConfiguration if the client is currently connected to a server, localConfiguration otherwise.

Link copied to clipboard

The currently loaded local configuration.

Link copied to clipboard

The error occurred during the ast configuration load. Will be null if it was successful.

Link copied to clipboard
@get:Environment(value = EnvType.CLIENT)
@set:Environment(value = EnvType.CLIENT)
var remoteConfiguration: Configuration?

The configuration of remote server the client is currently connected to, or null, if the client is not connected to a server. It is the configuration of the integrated server, if running.

Functions

Link copied to clipboard

Tries to load the local configuration from disk into localConfiguration. If the load fails, localConfiguration won't be changed, and the error can be found in localConfigurationLoadException.