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

Commit

Permalink
fix: spy formats should use %name%, not %sender_name%
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Dec 16, 2023
1 parent 7f8163a commit 16e8607
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private void loadConfig(@NotNull YamlDocument configFile) {
// Social spy
doSocialSpyCommand = configFile.getBoolean("social_spy.enabled", true);
socialSpyFormat = configFile.getString("social_spy.format", "&e[Spy] &7%sender% &8→ &7%receiver%:%spy_color% ");
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% ");
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% ");
socialSpyCommandAliases = (configFile.contains("social_spy.socialspy_aliases")) ?
getCommandsFromList(configFile.getStringList("social_spy.socialspy_aliases")) :
Collections.singletonList("socialspy");
Expand Down
4 changes: 2 additions & 2 deletions common/src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ message_command:
# Options for the /socialspy command
social_spy:
enabled: true
format: '&e[Spy] &7%sender_name% &8→ &7%receiver_name%:%spy_color% '
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% '
format: '&e[Spy] &7%name% &8→ &7%receiver_name%:%spy_color% '
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% '
socialspy_aliases:
- /socialspy
- /ss
Expand Down
4 changes: 2 additions & 2 deletions docs/Config-Files.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ message_command:
# Options for the /socialspy command
social_spy:
enabled: true
format: '&e[Spy] &7%sender_name% &8→ &7%receiver_name%:%spy_color% '
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% '
format: '&e[Spy] &7%name% &8→ &7%receiver_name%:%spy_color% '
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% '
socialspy_aliases:
- /socialspy
- /ss
Expand Down

0 comments on commit 16e8607

Please sign in to comment.