trySendI18nCustom

fun CommandSender.trySendI18nCustom(plugin: ColosseumPlugin, prefixColor: ChatColor, messageColor: ChatColor, key: String, alt: String, vararg placeholders: Pair<String, String>)

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

Parameters

plugin

The ColosseumPlugin instance.

prefixColor

The color of the message prefix.

messageColor

The color of the message body.

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.