Skip to content
On this page7 sections

Configuration is read once when the plugin loads, so every change needs a server restart to take effect. Defaults are the values in the shipped config.json.

Defaults are conservative

Several of the most useful options ship disabled so the plugin does nothing unexpected on first install. Enable the ones you want.

General

KeyDefaultWhat it does
DefaultEnabledtrueLevel 1 for players who have never used /dmg. false starts them at level 0.
ShowStructureDamagefalseAllows structure numbers at all. Required before players can use /dmg 2. Off by default because raids produce a very large number of hits.
ShowFriendlyFirefalseNumbers for hits on your own side — yourself, tribemates and the tribe's own tames.
ShareWithTribefalseDelivers relevant numbers to the whole online tribe.
MinimumDamage1Hits below this show nothing.
MaxViewDistanceFoundations50View distance in foundations. Hits further away are not shown. 0 means no limit.
ChatCommand/dmgThe player command. If you rename it, update Messages.Usage and Messages.UsageWithStructures to match.
DebugLoggingfalseVerbose per-event logging. Leave off in production — it writes a line per damage event server-wide.

Placement

KeyDefaultWhat it does
UseImpactPointtrueDraws numbers where the hit landed. Off draws every number at the target's centre.
ImpactSpreadRadius40How far apart, in world units, numbers drawn at an impact point are spread. 0 disables it.
NumberSpreadRadius220The same for numbers drawn at the target's centre, such as arrows. 0 disables it.
HeightOffset0Raises every number by this many world units.

Both spreads are kept within the target's own size, so numbers on a small creature stay close to it. If close-range numbers look too tight or too scattered, adjust ImpactSpreadRadius first.

Incoming damage

KeyDefaultWhat it does
IncomingDamage.EnabledfalseMaster switch for damage taken. A server decision rather than a player one, because on PvP it tells players how hard they are being hit.
IncomingDamage.IncludeUnriddenTamesfalseNumbers for tames your tribe owns but nobody is riding.
IncomingDamage.IncludeStructuresfalseNumbers when your tribe's structures are damaged. This is what makes a base under attack visible. Needs ShowStructureDamage too, and players at /dmg 2.
IncomingDamage.Colour255, 0, 0Incoming colour, with the colour renderer on.

Shield blocks

KeyDefaultWhat it does
ShieldBlock.EnabledtrueShows damage on a raised shield in the block colour.
ShieldBlock.Colour60, 220, 200Block colour, with the colour renderer on. Teal.

Colour renderer

With DistanceScaling.Enabled off, numbers use the game's own style and none of the colours on this page apply. Turn it on for your own colours, thousands separators and sizing.

KeyDefaultWhat it does
DistanceScaling.EnabledfalseSwitches to the plugin's own renderer.
DistanceScaling.Colour0, 255, 0Colour of damage you deal. Green.
DistanceScaling.MinScale1.0Text size up close.
DistanceScaling.MaxScale1.0Largest text size at a distance. Equal to MinScale keeps every number the same size.
DistanceScaling.DistancePerExtraScale4000World units of distance for each extra step of size, when MaxScale is above MinScale.
DistanceScaling.LifeSpan3.0How long a number stays on screen.
DistanceScaling.FadeOutTime1.0How long it takes to fade at the end.
DistanceScaling.RiseSpeed40How quickly a number drifts upward.

Explosives

KeyDefaultWhat it does
ExplosiveAggregationSeconds0.15How long to wait before summing charges that detonate together. If a stack ever splits into two numbers, raise it slightly.

Messages

Every reply to /dmg is configurable under Messages:

KeyShown when
SenderNameThe name shown in chat beside every reply. Default DamageNumbers.
EnabledA player turns numbers on.
EnabledStructuresA player turns numbers on including structures.
DisabledA player turns numbers off.
UsageThe command is used wrongly on a map without structure numbers.
UsageWithStructuresThe same, on a map with structure numbers.
StructuresOffA player asks for /dmg 2 on a map where structure numbers are off.

If you delete a setting from the file

A setting left out of config.json uses its built-in value. Most match the defaults above, but four renderer settings do not: MaxScale becomes 3.0, LifeSpan 1.5, FadeOutTime 0.5, and the dealt colour becomes the game's own cyan. Keeping the shipped file and editing values avoids surprises.

A reasonable starting point

Enable IncomingDamage.Enabled, ShowStructureDamage and ShareWithTribe for a PvP server — that combination is what makes raids and base attacks legible to a whole tribe. Turn on DistanceScaling.Enabled as well if you want dealt and incoming damage in different colours.