Skip to content

Versions & requireClientMod ​

Version rule ​

Only the same major version of What Hit Me? plays together. This check is always on:

  • A 1.x client joining a 2.0 server is 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)."
  • A 2.0 client joining a 1.x server leaves it: "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."
  • Clients without the mod still join a 2.0 server (server-only mode), unless requireClientMod is on.

The message a 1.x client gets from a 2.0 server

requireClientMod ​

A server setting that refuses players whose client does not have What Hit Me? 2.x.

# whathitme-common.cfg, category tracking
B:requireClientMod=true

Or as a pack setting ("settings": { "requireClientMod": { "value": true, "locked": true } }, Tracking group of the Settings tab), or in game (op): /whm config requireClientMod true (from a modded client: /whm server config requireClientMod true). Default: false.

What players see ​

What a player without the mod sees

A player without the mod is disconnected with:

This server requires What Hit Me? 2.0 or newer on your client. Install it and join again.

How it works ​

On every loader and version, the server waits up to 5 seconds after a player joins for the client's hello packet. A client that sent none is disconnected with the message above. This is one timer task per join, no tick handler. The server log shows [What Hit Me?] <name> has no What Hit Me? (requireClientMod): disconnected.

When to use it ​

  • Your rules hide things (such as the killer) that the vanilla death message would reveal, and the server runs Forge or NeoForge.
  • Your rules set death messages on Forge / NeoForge and you want everyone to see them.
  • Your pack ships the mod anyway and you want the full experience (panel, translations) for everyone.

On Fabric servers the death message is replaced for everyone, so this setting is only needed for the reasons in the last point.

The death message warning ​

A Forge or NeoForge server logs a warning on start and on /whm reload (and shows it in the /whm reload output) when:

  • a rule hides death_message or sets a deathMessage, and
  • requireClientMod is false.
On Forge 1.20.1, players without What Hit Me? still see the vanilla death message; set requireClientMod=true to hide it from everyone.

The warning is never shown on Fabric.

Made by junjun1z. The mods are MIT licensed.