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