Skip to content

[Bug] Force Replace Sword Issue #104

@wen-wen520

Description

@wen-wen520

Bug Report

Description:

When the keep-inventory-on-death setting is configured to true for a specific arena, and a player has a high-level sword or other items in the 1st slot of the hotbar, after the player dies, the item in the 1st slot of the hotbar is forcefully replaced with a wooden sword.

Steps to Reproduce:

  1. Configure the keep-inventory-on-death setting to true for an arena.
  2. Equip a high-level sword or other item in the 1st slot of the hotbar.
  3. Enter the arena and die.
  4. Observe that the item in the 1st slot of the hotbar is replaced with a wooden sword.

Expected Behavior:

The item in the 1st slot of the hotbar should remain unchanged after the player dies.
(The plungin should not modify player inventory when keep-inventory-on-death set to true)

Actual Behavior:

The item in the 1st slot of the hotbar is replaced with a wooden sword after the player dies.

Additional Information:

  • Paper version 1.21-130-master@b1b5d4c
  • jdk-21.0.6-oracle-x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions