Client, server or both
What Hit Me? works in every combination. Single player always counts as "client and server", because the integrated server runs the mod too.
Which mode do I get?
| Installed on | What players get |
|---|---|
| Client and server | Accurate data from the server: raw damage before armor, mitigation %, absorption, weapon and enchantments, owner, shield and i-frame flags, armor, environment. Text in the player's own language, clipboard buttons, the death screen panel. The server's whathitme-common.cfg and pack folder apply to everyone. |
| Client only (server without the mod, or a vanilla server) | Client estimate: the client watches its own health and, only when it drops, guesses the cause (fall, lava, fire, drowning, suffocation, void, nearby mob, projectile, explosion, poison, wither, starvation). Entries are marked [Client Est.]. /whm inspect is not available. The client's own pack folder gives names, tips and ignored damage; rule conditions count as not met and nothing is hidden (there is no server to keep a secret). |
| Server only (players without the mod, even plain Forge clients) | English chat sent by the server: the respawn summary, totem / heavy-hit alerts and every /whm command. [Copy ID] puts the id into the chat box instead of the clipboard. togglechat and ignore are stored per player on the server. |
On a server with the mod, each player gets the best mode their client supports: players with the mod get the full experience, players without it get the English chat.
What the server controls
When the server has the mod, it decides for every modded client, on login, after /whm reload, after a pack edit and whenever a player's progress changes an unlock condition:
- Rules are applied on the server. Each record arrives with its final name, tip and hidden fields; hidden information never reaches the client.
- Settings and locks of the pack (values, locked rows, locked commands, personal-feature locks, switched-off template variables) are sent to each player, already resolved for that player's progress.
- The server's
whathitme-common.cfgdisplay switches apply to everyone: an element is shown only when it is on in both files. Each player can turn off more for themselves. - Features the server turned off are removed from the packets the server builds, so a modified client cannot show them.
- Players can keep personal names, tips and hidden damage on top (unless the pack locks them, or a rule branch that hides fields applies).
Version rule
Only the same major version of What Hit Me? plays together:
| Client | Server | Result |
|---|---|---|
| 2.x | 2.x | Full features |
| without the mod | 2.x | Joins; English chat from the server (unless requireClientMod is on) |
| 1.x | 2.x | Disconnected: "This server uses What Hit Me? 2.0. Update What Hit Me? on your client to 2.0 and join again (or remove it to play without)." |
| 2.x | 1.x | The client leaves: "This server uses an older What Hit Me? (1.x). Use What Hit Me? 1.x on your client to play here, or remove the mod." |
| 2.x | without the mod | Client-only mode (estimates) |
The check does not depend on requireClientMod. Both messages are translated on the side that has 2.0.
Players without the mod
| Feature | Players with the mod | Players without the mod |
|---|---|---|
| Templates | Pack templates, personal templates | Pack templates in the server's English chat |
| Death messages from rules | Replaced | Fabric server: replaced. Forge / NeoForge server: vanilla message |
| Rules | Applied (server decides) | Applied to the chat the server sends; the vanilla death message on Forge / NeoForge is not changed |
| Settings & locks | Sent and shown greyed out in the settings screen | Applied to what the server sends (also unlock conditions) |
| requireClientMod | Join normally | Disconnected with a readable message |
Forge / NeoForge and hidden death messages
Forge and NeoForge have no event to change the vanilla death message. If your rules hide or replace the death message, players without the mod still see the vanilla text there. Set requireClientMod=true if that matters. The server logs a warning on start and on /whm reload in that case.
