Skip to content

Commit

Permalink
Set character and hex character
Browse files Browse the repository at this point in the history
  • Loading branch information
RappyTV committed Nov 4, 2024
1 parent b053dbc commit 82f278e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/net/funoase/sahara/bukkit/util/Colors.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ public static Component translateCodes(String message) {
}

public static Component translatePlayerCodes(CommandSender sender, String message, String basePermission) {
LegacyComponentSerializer.Builder builder = LegacyComponentSerializer.builder();
LegacyComponentSerializer.Builder builder = LegacyComponentSerializer
.builder()
.character(LegacyComponentSerializer.AMPERSAND_CHAR)
.hexCharacter(LegacyComponentSerializer.HEX_CHAR);
List<CharacterAndFormat> formats = new ArrayList<>();
if(sender.hasPermission(basePermission + ".hex")) {
builder.hexColors();
Expand Down

0 comments on commit 82f278e

Please sign in to comment.