SettingKey

sealed class SettingKey(source)

Sealed class representing all available setting keys.

A setting is fully described here: the literal it is typed as, the messages that report it, and how it is read from and written to PlayerChatSettings. SettingHandler is the one mechanism that drives all of them.

Inheritors

Types

Link copied to clipboard
data object ChNotice : SettingKey

Channel message notification setting Command: /lc setting chNotice

Link copied to clipboard
object Companion
Link copied to clipboard
data object Japanese : SettingKey

Japanese romaji conversion setting Command: /lc setting japanese

Link copied to clipboard
data object Notice : SettingKey

Direct message notification setting Command: /lc setting notice

Properties

Link copied to clipboard
val key: String

Unique identifier used in command arguments

Link copied to clipboard

Language key for the message reporting the current value

Link copied to clipboard

Language key for the message confirming a change

Functions

Link copied to clipboard
abstract fun read(settings: PlayerChatSettings): Boolean
Link copied to clipboard
abstract fun write(settings: PlayerChatSettings, enabled: Boolean): PlayerChatSettings