From f544a6ba28a81f2f8d2294aa984e74c4bcc80ba7 Mon Sep 17 00:00:00 2001 From: Sho Sakuma Date: Mon, 26 Jan 2026 02:47:15 +0900 Subject: feat: Add ChangeChat message notification --- .../dev/m1sk9/lunaticChat/engine/settings/PlayerChatSettings.kt | 2 ++ .../dev/m1sk9/lunaticChat/engine/settings/PlayerSettingsData.kt | 9 +++++++++ 2 files changed, 11 insertions(+) (limited to 'engine') diff --git a/engine/src/main/kotlin/dev/m1sk9/lunaticChat/engine/settings/PlayerChatSettings.kt b/engine/src/main/kotlin/dev/m1sk9/lunaticChat/engine/settings/PlayerChatSettings.kt index e970ae9..4cb44b4 100644 --- a/engine/src/main/kotlin/dev/m1sk9/lunaticChat/engine/settings/PlayerChatSettings.kt +++ b/engine/src/main/kotlin/dev/m1sk9/lunaticChat/engine/settings/PlayerChatSettings.kt @@ -9,6 +9,7 @@ import java.util.UUID * @property uuid The unique identifier of the player * @property japaneseConversionEnabled Whether romaji-to-Japanese conversion is enabled for this player * @property directMessageNotificationEnabled Whether direct message notifications are enabled for this player + * @property channelMessageNotificationEnabled Whether channel message notifications are enabled for this player */ @Serializable data class PlayerChatSettings( @@ -16,4 +17,5 @@ data class PlayerChatSettings( val uuid: UUID, val japaneseConversionEnabled: Boolean = true, val directMessageNotificationEnabled: Boolean = true, + val channelMessageNotificationEnabled: Boolean = true, ) diff --git a/engine/src/main/kotlin/dev/m1sk9/lunaticChat/engine/settings/PlayerSettingsData.kt b/engine/src/main/kotlin/dev/m1sk9/lunaticChat/engine/settings/PlayerSettingsData.kt index 3916bbf..0e3cd24 100644 --- a/engine/src/main/kotlin/dev/m1sk9/lunaticChat/engine/settings/PlayerSettingsData.kt +++ b/engine/src/main/kotlin/dev/m1sk9/lunaticChat/engine/settings/PlayerSettingsData.kt @@ -16,11 +16,15 @@ import java.util.UUID * directMessageNotification: * ceaea267-39dd-3bac-931c-761ada671ebe: true * another-uuid-here: false + * channelMessageNotification: + * ceaea267-39dd-3bac-931c-761ada671ebe: true + * another-uuid-here: false * ``` * * @property version The schema version for future compatibility * @property japaneseConversion Map of player UUIDs to their Japanese conversion enabled status * @property directMessageNotification Map of player UUIDs to their direct message notification enabled status + * @property channelMessageNotification Map of player UUIDs to their channel message notification enabled status */ @Serializable data class PlayerSettingsData( @@ -35,4 +39,9 @@ data class PlayerSettingsData( UUID, Boolean, > = emptyMap(), + val channelMessageNotification: Map< + @Serializable(with = UUIDASStringSerializer::class) + UUID, + Boolean, + > = emptyMap(), ) -- cgit v1.2.1