Repository navigation
Anti Dupe
The same item existing in two places at once is not a heuristic. There is no arrangement of legitimate play that produces it, which is why the duplicate check is one of the two X-Warden allows to act on a first sighting. As of 1.1 it is real-time: a duplicate is caught the moment it appears, and the copy that should not exist is taken out of play and kept for staff to return.
Every item that cannot stack is given an identity - a hidden id in its metadata - the first time X-Warden sees it in a real container: a player's inventory, an ender chest, a chest, barrel, hopper, dispenser, a shulker box's contents. Menus, shop screens, crafting grids and the creative inventory are never touched, so no shop item is ever minted with a shared id. With X-Prison present, a prison pickaxe's own identity is read rather than a second one added.
Stackable items are never stamped: an identity lives in the metadata, so splitting a stamped stack would hand both halves the same one - a duplicate nobody created. What a dupe leaves behind on stackables is caught differently (below).
fingerprint.all-unstackable (on by default) stamps every unstackable; turn it off to stamp only
the materials you list under custom-materials. fingerprint.ignore-materials is the escape hatch
for an item some other plugin rewrites on every use.
Every move a tracked item makes is written to a live in-memory index. When the same identity turns up in a second place, X-Warden re-reads the first place on the very next tick, on the server thread, to be certain the item is genuinely in both at once - a moved item is never mistaken for a duplicated one. If both copies really exist:
- the copy held by the item's first holder is kept; the other is taken into quarantine;
- staff are told once, with both locations and the item itself on the hover;
- nothing is ever deleted - the taken copy is serialised in full, written to the log, and stored.
Restore it with /xwarden quarantine restore <id>, or from the Quarantine button on the player's
report. It comes back with a fresh identity, because staff have decided both copies are legitimate -
a prison pickaxe included: its own identity stays underneath, but X-Warden's fresh one is what it is
recognised by from then on.
Kits, shops and crates. If you save a reward from an item that already carries an identity, every
player who receives it holds the same id. The first two holders look exactly like a dupe handed to a
friend, and are treated as one: both are flagged and the second copy is quarantined. The third holder
is what makes it look like a template - and also what a duper selling copies looks like, so X-Warden
does not decide on its own. It stops flagging and taking for that identity, raises a notice, and
waits. /xwarden template confirm <uid> withdraws the findings, hands every quarantined copy back
(with a fresh identity each) and ignores the identity from then on - then hold the item, run
/xwarden unstamp, and save it again. /xwarden template reject <uid> keeps treating it as a
duplicate. /xwarden template list shows what is waiting and what has been confirmed, and
/xwarden template forget <uid> takes a confirmation back. Accounts the
linked accounts module has tied together count as one holder here, so three alts
do not make a template. quarantine.template-holders is where the number lives, and it does not go
below 3.
- container-relog - leaving the server repeatedly with a container open, the shape of a relog-mid-transaction dupe. The server closes the container as the player leaves so its plugin saves first; X-Warden counts the pattern, and closes it itself on a build that does not.
- overstacked-item - a stack larger than the game allows. The game never makes one.
- contraband-item - an operator-only item (command blocks, barriers, the debug stick) in ordinary hands. Quarantined by default. Spawners and bedrock are deliberately not on the list.
A statistical backstop for what the item-level checks cannot trace: the total value a player
carries, per hour they have been online, measured against everybody else online. Valued by your
server's own sell prices where X-Prison is present, else a table in warden.yml. Alert only,
dormant below a handful of players online, and it lists byte-identical shulker boxes as a fact
rather than proof.
The old full sweep stays as the backstop, on scan.interval-minutes, and is still the only way
registered container plugins (vaults, backpacks - see Developer API) and the carry
review are checked. /xwarden scan runs one now. With live.enabled off the sweep is the only
reader, and a duplicate it finds is confirmed, reported and quarantined exactly as the live index
would have - just at the next sweep rather than the next tick.
There is no offline inventory on any server, so a relog dupe is proven at the offline holder's next join, not at the instant of the relog - and that wait survives a restart. An item inside a plugin's own storage is invisible until that plugin registers a container source. An item is only provable from the moment X-Warden first reads it: inventories are read after every click, drop, pickup, container open, command and join, so that moment is almost always the moment it arrives, but a copy made before it carries an identity of its own. Items in places X-Warden does not read - armor stands, item displays, jukeboxes, lecterns, decorated pots, chiseled bookshelves, furnaces, mob equipment - are not lost to it: the copy is found the next time it is in a place X-Warden does read while the other copy still exists. Bedrock players are unaffected by stamping.