Fixes colored NPC names, and cleans up a bit
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
This commit is contained in:
@@ -27,7 +27,8 @@ public final class BlacksmithStringFormatter {
|
||||
public static void sendNPCMessage(NPC npc, Player player, String message) {
|
||||
player.sendMessage(BlacksmithPlugin.getStringFormatter().replacePlaceholders(
|
||||
BlacksmithTranslatableMessage.NPC_TALK_FORMAT, List.of("{npc}", "{message}"),
|
||||
List.of(npc.getName(), ColorHelper.translateColorCodes(message, ColorConversion.RGB))));
|
||||
List.of(ColorHelper.translateColorCodes(npc.getRawName(), ColorConversion.RGB),
|
||||
ColorHelper.translateColorCodes(message, ColorConversion.RGB))));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user