Enum Class ConfigurationOption
- All Implemented Interfaces:
Serializable
,Comparable<ConfigurationOption>
,Constable
An enum containing all available settings/configuration options
- Author:
- Thorin
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe address of the used database, if using a remote databaseThe name of the used database, if using a remote databaseThe database driver to use, if using a remote databaseWhen using remote database, what should the name of the proxy be?The password for the used database, if using a remote databaseThe port of the used database, if using a remote databaseWhether to use an SSL connection, if using a remote databaseThe username for the used database, if using a remote databaseWhether to charge for a teleportation from a non-free stargate even if the destination is freeThe version of the configuration.The cost of creating a new stargateThe name of the .db file if using SQLiteThe level of debugging/warning messages to displayThe default network if no network is specifiedThe default color to use for signsTODO: UnimplementedThe cost of destroying a stargateAllow explosions to destroy portalsWhether to strip any color tags from stargate names and inter-server networksAllows users to use/break any gates they create, regardless of any permissions that may prevent them from doing soThe multiplier to use for the exit speed when leaving a StargateThe folder to load gate files fromThe maximum number of stargates on a single networkWhether to send any transaction fees to the gate owner's balanceHandle leashed entities during teleportationAllow vehicles to teleport without any player insideThe language used for all translatable messagesThe network used for all legacy BungeeCord StargatesHow should SG style its pointer symbol?The action that should be made whenever a loaded portal does not have a valid layoutRemember the last destination a networked portal was connected toWhether to use database settings from a Hikari config file instead of the settings in the config fileAllows for specific events to destroy portalsThe UUID to pay any taxes toTODO: UnimplementedThe cost of using (teleporting through) a stargateWhether to enable economy functionality for stargate interactionWhether BungeeCord functionality is enabledWhether to use a "real" database instead of just a .db file -
Method Summary
Modifier and TypeMethodDescriptionGets the config file string node corresponding to this settingGets the data type used for storing this config optionGets this config option's default valueGets the description of what this config option doesboolean
isHidden()
Gets whether this configuration option is hiddenstatic ConfigurationOption
Returns the enum constant of this class with the specified name.static ConfigurationOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT_NETWORK
The default network if no network is specified -
LEGACY_BUNGEE_NETWORK
The network used for all legacy BungeeCord Stargates -
LANGUAGE
The language used for all translatable messages -
USING_BUNGEE
Whether BungeeCord functionality is enabled -
GATE_LIMIT
The maximum number of stargates on a single network -
USE_ECONOMY
Whether to enable economy functionality for stargate interaction -
TAX_DESTINATION
The UUID to pay any taxes to -
CREATION_COST
The cost of creating a new stargate -
DESTROY_COST
The cost of destroying a stargate -
USE_COST
The cost of using (teleporting through) a stargate -
GATE_OWNER_REVENUE
Whether to send any transaction fees to the gate owner's balance -
CHARGE_FREE_DESTINATION
Whether to charge for a teleportation from a non-free stargate even if the destination is free -
DEFAULT_SIGN_COLOR
The default color to use for signs -
POINTER_BEHAVIOR
How should SG style its pointer symbol? -
GATE_EXIT_SPEED_MULTIPLIER
The multiplier to use for the exit speed when leaving a StargateIf the multiplier is 0, the behaviour is the same as in legacy. If the multiplier is 1, it's the same as the entry speed. 2 = double, 0.5 = half.
-
DISABLE_CUSTOM_COLORED_NAMES
Whether to strip any color tags from stargate names and inter-server networks -
DEBUG_LEVEL
The level of debugging/warning messages to display -
CONFIG_VERSION
The version of the configuration. Use for updating the config file -
DATABASE_NAME
The name of the .db file if using SQLite -
USING_REMOTE_DATABASE
Whether to use a "real" database instead of just a .db file -
SHOW_HIKARI_CONFIG
Whether to use database settings from a Hikari config file instead of the settings in the config file -
BUNGEE_DRIVER
The database driver to use, if using a remote database -
BUNGEE_DATABASE
The name of the used database, if using a remote database -
BUNGEE_PORT
The port of the used database, if using a remote database -
BUNGEE_ADDRESS
The address of the used database, if using a remote database -
BUNGEE_USERNAME
The username for the used database, if using a remote database -
BUNGEE_PASSWORD
The password for the used database, if using a remote database -
BUNGEE_USE_SSL
Whether to use an SSL connection, if using a remote database -
BUNGEE_INSTANCE_NAME
When using remote database, what should the name of the proxy be? -
DESTROY_ON_EXPLOSION
Allow explosions to destroy portals -
HANDLE_VEHICLES
Allow vehicles to teleport without any player inside -
REMEMBER_LAST_DESTINATION
Remember the last destination a networked portal was connected to -
UPKEEP_COST
TODO: Unimplemented -
PORTAL_VALIDITY
The action that should be made whenever a loaded portal does not have a valid layout -
HANDLE_LEASHES
Handle leashed entities during teleportation -
DEFAULT_TERMINAL_NAME
TODO: Unimplemented -
ENABLE_OWNED_GATES
Allows users to use/break any gates they create, regardless of any permissions that may prevent them from doing so -
SPECIFIC_PROTECTION_OVERRIDE
Allows for specific events to destroy portals -
GATE_FOLDER
The folder to load gate files from
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDataType
Gets the data type used for storing this config option- Returns:
The data type used
-
getConfigNode
Gets the config file string node corresponding to this setting- Returns:
The config file string node corresponding to this setting
-
getDescription
Gets the description of what this config option does- Returns:
The description of this config option
-
getDefaultValue
Gets this config option's default value- Returns:
This config option's default value
-
isHidden
public boolean isHidden()Gets whether this configuration option is hiddenA hidden configuration option should not be provided to users unless they are really advanced users and have an obscure need to change the value.
- Returns:
Whether this configuration option is hidden
-