trySendI18nInfo

fun CommandSender.trySendI18nInfo(plugin: ColosseumPlugin, key: String, alt: String, vararg placeholders: Pair<String, String>)

Tries to send an internationalized info message to the command sender. If the translation is missing, sends the alternative message instead.

Parameters

plugin

The ColosseumPlugin instance.

key

The key for the message in the i18n files.

alt

The alternative message to send if the translation is missing.

placeholders

The placeholders to replace in the message.