Skip to content

Commit 7544b1e

Browse files
committed
Add description for templates
1 parent bb9e867 commit 7544b1e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/com/eternalcode/formatter/ChatController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void onChat(AsyncPlayerChatEvent event) {
5757

5858
String raw = this.settings.preFormatting()
5959
? event.getFormat()
60-
: this.settings.format(this.rankProvider.getRank(event.getPlayer()));
60+
: this.settings.format(this.rankProvider.getRank(player));
6161

6262
String withTemplates = this.templateService.applyTemplates(raw);
6363
String withFormat = this.placeholderRegistry.format(withTemplates, player);

src/main/java/com/eternalcode/formatter/config/PluginConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ public class PluginConfig implements ChatSettings, PlaceholderStack, TemplateRep
5454
.put("admin", "$template({admin}, &c)")
5555
.build();
5656

57+
58+
@Description({ StringUtils.EMPTY, "# It is used to shorten the text even more and keep the clean file!" })
5759
public List<Template> templates = new ImmutableList.Builder<Template>()
5860
.add(Template.of("template", List.of("rank", "color"), "$rank $color{displayname} &8{arrow_right} $color{message}"))
5961
.build();

0 commit comments

Comments
 (0)