Translation
constructor(id: String, defaultValue: String, group: String = "common", language: String = "en", mainColor: String? = null, colors: Array<String> = emptyArray(), autoRegister: Boolean = true)
Parameters
id
The id of the translation
defaultValue
The default value of the translation.
group
The group (folder) where to store this translation. Defaults to "common"
language
The language of the translation. (Default to "en")
mainColor
The main color of the translation. (Default to null)
colors
The colors to use in the translation replacing strings. Example (using color '&c'): 'test' should return '&ctest'. Default to an empty array.
autoRegister
If the translation should be automatically registered. (Default to true) It is recommended to disable if you're going to initialize the same translation multiple times (for example, inside a loop)