Repository navigation
Client Detection
As a player joins, X-Warden works out what client they are on and can kick - or ban - a cheat client automatically. Three things are read, each more trustworthy than the last.
-
The brand. The name the client announces for itself:
vanilla,fabric,lunarclient... A cheat client can call itself anything, and a harmless one can be renamed, so this is the weakest signal. - The plugin channels it registers. Mods and launchers that talk to the server announce themselves here. Also spoofable.
- The probe. On a Java client, X-Warden briefly shows the joining player a sign whose lines are a keybind or a translation key that only one cheat mod defines. A client with that mod resolves it to its bound key or its own text; every other client echoes the raw id back unchanged. That is the client answering for itself, and it is what a kick rests on. The sign is a real block placed out of sight under the player for a few seconds and then removed; the player sees the sign screen for about one frame.
The strongest of the three verdicts wins: cheat > modded > allowed. A modded client that
announced nothing cheat-specific is recorded (modded-client, log only); an allowed launcher is
noted and nothing more.
Everything the three sources are matched against is in client-signatures.yml, and every entry says
where it was verified. Shipped and confirmed from the clients' own source: Meteor
(key.meteor-client.open-gui), Wurst (gui.wurst.generic.left_click_to_edit, key.wurst.zoom),
LiquidBounce (liquidbounce.generic.enabled). Brands and channels for Fabric, Forge, Lunar,
Feather, LabyMod, Badlion, Essential and others are matched by pattern. Edit the file and
/xwarden reload.
cheat-client ships on KICK - the one check besides duplicate-item allowed a strong default,
because a probe hit is the client's own statement rather than a measurement. To ban instead, set its
action to PUNISH and name a preset from warden-punishments.yml:
cheat-client:
action: PUNISH
preset: cheat-clientA brand or channel match with no probe hit is weaker (90 and 95 confidence against the probe's 100), and can be wrong only if a pattern in the signature file matches a harmless mod - which is the one way this check produces a false positive, and the fix is the pattern.
Bedrock players through Geyser are never probed and never reported - Geyser cannot resolve a keybind on a sign, so a probe could only ever be inconclusive, and it would show them a form. They are recognised by their Floodgate UUID and by the Geyser brand.
Brand and channels are self-declared. A cheat client that spoofs vanilla and registers nothing is
only caught by the probe, and a client that does not resolve components on a sign is inconclusive,
never flagged - so a determined evader is possible, but the default configuration of the popular
clients is not. On Spigot the brand may be unavailable entirely, and the console says so once.