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) of the translation. Defaults to "common"

language

The language of the translation. (Defaults to "en")

mainColor

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.

autoRegister

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)