PlayerSettingsData

@Serializable
data class PlayerSettingsData(val version: Int = 1, val japaneseConversion: Map<@Serializable(with = UUIDASStringSerializer::class) UUID, Boolean> = emptyMap(), val directMessageNotification: Map<@Serializable(with = UUIDASStringSerializer::class) UUID, Boolean> = emptyMap(), val channelMessageNotification: Map<@Serializable(with = UUIDASStringSerializer::class) UUID, Boolean> = emptyMap())(source)

Root data structure for player settings stored in YAML format. All player settings are stored in a single YAML file with this structure.

Example YAML format:

version: 1
japaneseConversion:
ceaea267-39dd-3bac-931c-761ada671ebe: true
another-uuid-here: false
directMessageNotification:
ceaea267-39dd-3bac-931c-761ada671ebe: true
another-uuid-here: false
channelMessageNotification:
ceaea267-39dd-3bac-931c-761ada671ebe: true
another-uuid-here: false

Constructors

Link copied to clipboard
constructor(version: Int = 1, japaneseConversion: Map<@Serializable(with = UUIDASStringSerializer::class) UUID, Boolean> = emptyMap(), directMessageNotification: Map<@Serializable(with = UUIDASStringSerializer::class) UUID, Boolean> = emptyMap(), channelMessageNotification: Map<@Serializable(with = UUIDASStringSerializer::class) UUID, Boolean> = emptyMap())

Properties

Link copied to clipboard

Map of player UUIDs to their channel message notification enabled status

Link copied to clipboard

Map of player UUIDs to their direct message notification enabled status

Link copied to clipboard

Map of player UUIDs to their Japanese conversion enabled status

Link copied to clipboard

The schema version for future compatibility