Skip to content

Commit abae53c

Browse files
committed
Allow for title coloring to continue into names for places such as f show
1 parent 5e5881f commit abae53c

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

bukkit/src/main/java/dev/kitteh/factions/config/file/TranslationsConfig.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,12 @@ public List<String> getPlayer() {
20552055
private Title title = new Title();
20562056
private ToolTips tooltips = new ToolTips();
20572057

2058+
private boolean playerTitleColorContinuesIntoName = false;
2059+
2060+
public boolean isPlayerTitleColorContinuesIntoName() {
2061+
return playerTitleColorContinuesIntoName;
2062+
}
2063+
20582064
public LastSeen lastSeen() {
20592065
return lastSeen;
20602066
}

bukkit/src/main/java/dev/kitteh/factions/data/MemoryFPlayer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,9 @@ public Component nameWithTitle() {
507507
if (title.equals(Component.empty())) {
508508
return Component.text(this.role.getPrefix() + this.name);
509509
}
510+
if (FactionsPlugin.instance().tl().placeholders().isPlayerTitleColorContinuesIntoName()) {
511+
return Component.text().append(Component.text(this.role.getPrefix())).append(title.append(Component.text(" " + this.name))).build();
512+
}
510513
return Component.text().append(Component.text(this.role.getPrefix())).append(title).append(Component.text(" " + this.name)).build();
511514
}
512515

0 commit comments

Comments
 (0)