Against ESP and X-ray
X-ray#
The real fix is Paper's own anti-xray, which sends fake ore to the client so an X-ray pack or cheat has nothing real to show. Turn it on in config/paper-world-defaults.yml (anticheat.anti-xray.enabled: true, engine-mode: 2). /ac antixray reads that file and tells you what your server has. The X-ray check in mcAnticheat only looks at how a player digs (tunnels that bend straight to hidden ore) and starts in dry run.
Player culling#
A client can only draw the players the server told it about. With culling.enabled: true, players who are completely behind solid blocks are not sent to a viewer until they are about to come into view. The server still knows about them, so combat and every check work as before. The line-of-sight test looks from the viewer's eye (and a few ticks ahead along their movement) to five points of the target, and hides only after several occluded tests in a row.
min-distance(10): players closer than this are never hidden.max-distance(128).max-rays-per-tick(600) caps the cost.viewers-per-tick(4).- Bedrock players, spectators and players with
mcanticheat.bypass.cullingare not culled. - It is off by default. A very fast player can appear a few ticks late.
/ac cullingshows the state.
Not possible from the server#
Fullbright, freecam, zoom, minimaps and resource-pack X-ray happen only in the client.