You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feat: Parse PAPI twice config for playerlist and playerinfo.
Why do we do this?
By default it uses %vault_prefix%, which in some cases, will return placeholders AGAIN (e.g. itemsadder font prefixes) which will not be parsed.
Copy file name to clipboardExpand all lines: abstraction/src/main/java/com/loohp/multichatdiscordsrvaddon/config/Config.java
+4
Original file line number
Diff line number
Diff line change
@@ -178,6 +178,7 @@ public record DiscordCommandsPlayerInfo(
178
178
@Comment("Enable the /playerinfo command to show player information") booleanenabled,
179
179
@Comment("If you do NOT use a shared channel for multiple servers, this should be set to true.\nIf you do, set this option on ONE of the main servers connected to the discord channel to true.") booleanisMainServer,
180
180
@Comment("The description of this command on Discord") Stringdescription,
181
+
@Comment("Parse PAPI placeholders twice. In some cases, such as using %vault_prefix%, it will return placeholders (e.g. ItemsAdder prefix placeholders) which will not be parsed.") booleanparsePlaceholdersTwice,
181
182
@Comment("The player information to display") DiscordCommandsPlayerInfoFormattinginfoFormatting
182
183
) {}
183
184
@@ -208,6 +209,7 @@ public record DiscordCommandsPlayerListOptions(
208
209
@Comment("PlaceholderAPI placeholders in the header are parsed as the first player in the playerlist!\nLeave this variable as a single blank line to disable.") List<String> headerText,
209
210
@Comment("PlaceholderAPI placeholders in the footer are parsed as the first player in the playerlist!\nLeave this variable as a single blank line to disable.") List<String> footerText,
210
211
@Comment("Instead of parsing colour codes for each playername,\nparse MiniMessage tags instead.") booleanparsePlayerNamesWithMiniMessage,
212
+
@Comment("Parse PAPI placeholders twice. In some cases, such as using %vault_prefix%, it will return placeholders (e.g. ItemsAdder prefix placeholders) which will not be parsed.") booleanparsePlaceholdersTwice,
0 commit comments