ModeSetting
A setting that can have a select few modes as values
new ModeSetting(String name, String description, String value, String[] possibleValues)
new ModeSetting(String name, String description, String value, String[] possibleValues)
Creates a new ModeSetting
. A ModeSetting
is a setting with a set of possible modes that the user will be abled to select from.
getValue(): String
getValue(): String
Returns the current value of the setting.
setValue(String value): void
setValue(String value): void
Sets the value of the setting.
getName(): String
getName(): String
Gives the name of the setting.
getDescription(): String
getDescription(): String
Returns the description of the setting.
is(String value): boolean
is(String value): boolean
Returns if value
is the currently selected mode.
setHidden(boolean hidden): void
setHidden(boolean hidden): void
Allows you to hide a setting from the menu.
setHidden()
only works on settings that have been initiated by scripts in the first place!
isHidden(boolean hidden): void
isHidden(boolean hidden): void
Allows you to hide a setting from the menu.
Last updated