Use % for damage format
This commit is contained in:
1 parent
9112dda6ad
commit
fb8c2ba80a
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -65,7 +65,7 @@ public record DamageIndicators(
|
||||
|
||||
ArmorStand indicator = damaged.getWorld().spawn(damaged.getLocation().clone().add(xRand, yRand, zRand), ArmorStand.class, entity -> {
|
||||
entity.customName(this.damageIndicators.format.replaceText(builder ->
|
||||
builder.matchLiteral("{damage}").once().replacement(Component.text(Util.DAMAGE_FORMAT.format(event.getFinalDamage())))
|
||||
builder.matchLiteral("%damage%").once().replacement(Component.text(Util.DAMAGE_FORMAT.format(event.getFinalDamage())))
|
||||
));
|
||||
|
||||
entity.setCustomNameVisible(true);
|
||||
|
||||
@@ -14,4 +14,4 @@ enabled: true
|
||||
disabled-worlds: []
|
||||
|
||||
# The format of the damage indicator displays.
|
||||
format: "<red>{damage} <dark_red>❤"
|
||||
format: "<red>%damage% <dark_red>❤"
|
||||
Reference in new issue
Block a user