Skip to content
This repository was archived by the owner on Oct 12, 2024. It is now read-only.

Commit 16e8607

Browse files
committed
fix: spy formats should use %name%, not %sender_name%
1 parent 7f8163a commit 16e8607

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

common/src/main/java/net/william278/huskchat/config/Settings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private void loadConfig(@NotNull YamlDocument configFile) {
165165
// Social spy
166166
doSocialSpyCommand = configFile.getBoolean("social_spy.enabled", true);
167167
socialSpyFormat = configFile.getString("social_spy.format", "&e[Spy] &7%sender% &8→ &7%receiver%:%spy_color% ");
168-
socialSpyGroupFormat = configFile.getString("social_spy.group_format", "&e[Spy] &7%sender_name% &8→ &7%receiver_name%[₍₊%group_amount_subscript%₎](gray show_text=&7%group_members%):%spy_color% ");
168+
socialSpyGroupFormat = configFile.getString("social_spy.group_format", "&e[Spy] &7%name% &8→ &7%receiver_name%[₍₊%group_amount_subscript%₎](gray show_text=&7%group_members%):%spy_color% ");
169169
socialSpyCommandAliases = (configFile.contains("social_spy.socialspy_aliases")) ?
170170
getCommandsFromList(configFile.getStringList("social_spy.socialspy_aliases")) :
171171
Collections.singletonList("socialspy");

common/src/main/resources/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ message_command:
9696
# Options for the /socialspy command
9797
social_spy:
9898
enabled: true
99-
format: '&e[Spy] &7%sender_name% &8→ &7%receiver_name%:%spy_color% '
100-
group_format: '&e[Spy] &7%sender_name% &8→ &7%receiver_name% [₍₊%group_amount_subscript%₎](gray show_text=&7%group_members% suggest_command=/msg %group_members_comma_separated% ):%spy_color% '
99+
format: '&e[Spy] &7%name% &8→ &7%receiver_name%:%spy_color% '
100+
group_format: '&e[Spy] &7%name% &8→ &7%receiver_name% [₍₊%group_amount_subscript%₎](gray show_text=&7%group_members% suggest_command=/msg %group_members_comma_separated% ):%spy_color% '
101101
socialspy_aliases:
102102
- /socialspy
103103
- /ss

docs/Config-Files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ message_command:
109109
# Options for the /socialspy command
110110
social_spy:
111111
enabled: true
112-
format: '&e[Spy] &7%sender_name% &8→ &7%receiver_name%:%spy_color% '
113-
group_format: '&e[Spy] &7%sender_name% &8→ &7%receiver_name% [₍₊%group_amount_subscript%₎](gray show_text=&7%group_members% suggest_command=/msg %group_members_comma_separated% ):%spy_color% '
112+
format: '&e[Spy] &7%name% &8→ &7%receiver_name%:%spy_color% '
113+
group_format: '&e[Spy] &7%name% &8→ &7%receiver_name% [₍₊%group_amount_subscript%₎](gray show_text=&7%group_members% suggest_command=/msg %group_members_comma_separated% ):%spy_color% '
114114
socialspy_aliases:
115115
- /socialspy
116116
- /ss

0 commit comments

Comments
 (0)