From 6aeca39a1c2b51becb7a6053f5b11d118e0d0aa2 Mon Sep 17 00:00:00 2001 From: Zefir Kirilov Date: Mon, 26 Jan 2026 15:08:27 +0200 Subject: [PATCH 1/2] Removed unnecessary quotes from config --- src/main/resources/config.yml | 54 +++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 6012eb5..6038585 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -3,11 +3,11 @@ # - the username of the message sender # - the username of the message recipient # - the message text -incoming: ' >[<#60a5fa> -> <#bfdbfe>me] <#dbeafe>' +incoming: >[<#60a5fa> -> <#bfdbfe>me] <#dbeafe> # Outgoing message format (sender's point of view) # Same placeholders as incoming -outgoing: ' >[<#93c5fd>me -> <#60a5fa>] <#dbeafe>' +outgoing: >[<#93c5fd>me -> <#60a5fa>] <#dbeafe> # Team message # Uses the vanilla teams from `/team` @@ -15,24 +15,24 @@ outgoing: ' >[<#93c5fd>me - the username of the message sender # - team display name # - the message text -team: '[] : ' +team: [] : # Private message format as seen by people with the spy permission and console # Same placeholders as incoming -spy: '[SPY] [ > -> >] ' +spy: [SPY] [ > -> >] # Team message format as seen by people with the spy permission and console # Same placeholders as team -team-spy: '[SPY] [] >: ' +team-spy: [SPY] [] >: # Player has successfully been ignored # Placeholders: # - the player's username -ignored: "(!) You will no longer see messages from ." +ignored: (!) You will no longer see messages from . # Player has successfully been unignored # Same placeholders as ignored -unignored: "(!) You are no longer ignoring ." +unignored: (!) You are no longer ignoring . channel: # Message channel created @@ -63,30 +63,30 @@ channel: team-closed: (!) Your chat messages will now be public. # Name for console/server that should appear as or in messages -console-name: "Server" +console-name: Server # Command usage format # Placeholders: # - the command name # - the command usage parameters -usage: "(!) Usage: / " +usage: (!) Usage: / # Plugin reloaded -reloaded: "(!) Plugin successfully reloaded." +reloaded: (!) Plugin successfully reloaded. toggle: disable: # Disable private messages - message: "(!) Receiving private messages is now disabled. Run again to re-enable." + message: (!) Receiving private messages is now disabled. Run again to re-enable. # Placeholders: # - the player's username - other: "(!) Receiving private messages now disabled for ." + other: (!) Receiving private messages now disabled for . enable: # Enable private messages - message: "(!) You can now receive private messages again." + message: (!) You can now receive private messages again. # Placeholders: # - the player's username - other: "(!) Re-enabled receiving of private messages for ." + other: (!) Re-enabled receiving of private messages for . # Set custom global/public chat format. Disabled by default. # @@ -105,50 +105,50 @@ chat-format: null # Error messages errors: # No permission - no-permission: "(!) You don't have permission to use this command." + no-permission: (!) You don't have permission to use this command. # Player has no username (somehow) - invalid-player: "(!) Invalid player." + invalid-player: (!) Invalid player. # Player not found # Placeholders: # - the player's username - player-not-found: "(!) Player not found." + player-not-found: (!) Player not found. - message-yourself: "(!) You can't send a message to yourself." + message-yourself: (!) You can't send a message to yourself. - nobody-reply: "(!) You have no one to reply to." + nobody-reply: (!) You have no one to reply to. # The player that messaged you is no longer online # Placeholders: # - the player's username - reply-offline: "(!) Player is no longer online." + reply-offline: (!) Player is no longer online. # Only players can use this command - not-player: "(!) You must be a player to use this command." + not-player: (!) You must be a player to use this command. # That player is not ignored # Placeholders: # - the player's username - not-ignored: "(!) You are not ignoring that player." + not-ignored: (!) You are not ignoring that player. # Player cannot be ignored # Placeholders: # - the player's username - cannot-ignore: "(!) You cannot ignore ." + cannot-ignore: (!) You cannot ignore . # You are trying to ignore yourself - ignore-yourself: "(!) You cannot ignore yourself." + ignore-yourself: (!) You cannot ignore yourself. # Target player has never joined the server # Placeholders: # - the player's username - never-joined: "(!) has never joined this server." + never-joined: (!) has never joined this server. # Target player have disabled their incoming private messages. # Placeholders: # - the player's username - incoming-disabled: "(!) You cannot message because they have disabled private messages." + incoming-disabled: (!) You cannot message because they have disabled private messages. # Trying to message a team, but not in one - not-in-team: "(!) You are not in a team." + not-in-team: (!) You are not in a team. From 25b12eacb716106508f6f458ebef9bd8096f942f Mon Sep 17 00:00:00 2001 From: Zefir Kirilov Date: Mon, 26 Jan 2026 16:28:32 +0200 Subject: [PATCH 2/2] Added configurable message sounds --- .idea/codeStyles/Project.xml | 1 + .idea/codeStyles/codeStyleConfig.xml | 1 - .../cloudnode/smp/cloudnodemsg/Message.java | 13 ++++- .../smp/cloudnodemsg/PluginConfig.java | 51 ++++++++++++++++++- .../command/TeamMessageCommand.java | 13 +++++ src/main/resources/config.yml | 32 ++++++++++++ 6 files changed, 108 insertions(+), 3 deletions(-) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 2569ffc..c90d886 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -50,6 +50,7 @@ '>: chat-format: null +# Play a sound… +sound: + personal: + # …when receiving a private message + incoming: + # The ID of the sound. + # Set to null, none, or "" to disable. + sound: entity.chicken.egg + + # Volume of the sound from 0.0 to 1.0. Decrease to be quieter. + volume: 1.0 + + # Pitch of the sound from 0.5 to 2.0. + # Optional: defaults to 1.0. + # Values below 1.0 lower the pitch and increase the duration; + # values above 1.0 raise the pitch and reduce the duration. + pitch: 0.82 + + # …when sending a private message + outgoing: + sound: null + + team: + # …when receiving a team message + incoming: + sound: ui.hud.bubble_pop + pitch: .7 + + # …when sending a team message + outgoing: + sound: null + # Error messages errors: # No permission