A Paper 1.21.11 plugin that restores vanilla attribute swapping behavior on servers.
Attribute swapping (MC-28289) is a vanilla Minecraft mechanic where swapping weapons within 1-2 ticks of an attack causes the game to mix attributes from both items — using one weapon's base damage with another weapon's enchantments.
Paper prevents this by forcing equipment updates on player actions. FAF undoes that fix, restoring vanilla behavior.
- Disables Paper's
update-equipment-on-player-actionsat runtime via reflection - Preserves the attack cooldown ticker across item swaps using NMS reflection, counteracting Paper's cooldown reset
- Falls back to temporary attribute modifiers if the config toggle is unavailable
- Drop
faf-1.0.0.jarinto your server'splugins/folder - Restart the server
- Attribute swapping is enabled by default
| Command | Permission | Description |
|---|---|---|
/faf |
faf.toggle |
Toggle vanilla attribute swap on/off |
Permission defaults to op.
# config.yml
enabled: trueRequires Java 21 and Maven.
mvn clean packageThe jar will be in target/faf-1.0.0.jar.