get

operator fun get(lang: String): Map<String, String>?

Gets the language map for the specified language.

Return

The language map or null if the language is not found.

Parameters

lang

The language to get the map for.


operator fun get(lang: String, key: String): String?

Gets a message from the language file, for a specific language.

Return

The message or null if the language or key is not found.

Parameters

lang

The language to get the message from.

key

The key of the message.


operator fun get(lang: String, key: String, vararg placeholders: Pair<String, String>): String?

Gets a message from the language file, for a specific language. Placeholders in the message will be replaced with the specified values.

Parameters

lang

The language to get the message from.

key

The key of the message.

placeholders

The placeholders to replace in the message.


operator fun get(commandSender: CommandSender, key: String, vararg placeholders: Pair<String, String>): String?

Gets a message from the language file, for a specific language. Placeholders in the message will be replaced with the specified values. If the command sender is a player, the message will be formatted based on the player's locale, else the default language will be used.

Parameters

commandSender

The entity that executed the command.

key

The key of the message.

placeholders

The placeholders to replace in the message.