Package-level declarations

Types

Link copied to clipboard

Every {name} a chat format in config.yml may contain.

Link copied to clipboard

Represents a supported language in LunaticChat.

Link copied to clipboard
class LanguageManager(plugin: JavaPlugin? = null, logger: Logger, selectedLanguage: Language, resourceLoader: (String) -> InputStream?? = null)

Manages language files and provides message retrieval with string-based keys.

Link copied to clipboard
object LanguageSerializer : KSerializer<Language>

Reads a Language from its code, as written in config.yml.

Link copied to clipboard

Formats messages with the prefix and applies color styling.

Functions

Link copied to clipboard
fun MessageFormatConfig.channelMessage(sender: String, channel: String, channelId: String, displayName: Component, message: String, world: String, role: () -> String): Component
Link copied to clipboard

The name of role in the configured language, as both {role} and /lc channel status show it.

Link copied to clipboard
fun MessageFormatConfig.crossServerGlobalChat(server: String, sender: String, message: String): Component
Link copied to clipboard
fun MessageFormatConfig.directMessage(sender: String, recipient: String, message: String, world: String): Component

Renders the chat formats of config.yml.