Skip to content

Dupe items #10

@VacAge

Description

@VacAge

Terms

  • I'm using the very latest version of RPGDrops and its dependencies.
  • I am sure this is a bug and it is not caused by a misconfiguration or by another plugin.
  • I already searched on this Github page to check if the same issue was already reported.
  • I already searched on the plugin wiki to know if a solution is already known.
  • I already searched on the forums to check if anyone already has a solution for this.

Discord tag (optional)

vacage

What happened?

I am using Purpur 1.21.1 with the RPGDrops-1.0.2 plugin. Under certain circumstances, when players drop an item on the server and do not pick it up before either logging out or moving out of the item's render distance (beyond chunk boundaries), then return later, an issue occurs.

For some reason, the last player who dropped the item can pick it up without any problems. However, for another player, the item remains on the ground and can be picked up infinitely until they either relog or leave the item's render distance again. Once they do, the non-existent item on the ground disappears, but the duplicated items they picked up remain in their inventory.

Steps to reproduce the issue

  1. Start the Server

    • Run the server on Purpur 1.21.1 with the RPGDrops-1.0.2 plugin installed.
  2. Player 1 Drops an Item

    • Player 1 (P1) drops an item on the ground.
  3. Leave the Item Unpicked

    • Ensure that no one picks up the item.
  4. Trigger the Visibility Issue

    • P1 either:
      • Logs out of the server.
      • Moves far enough away so that the item is no longer rendered (beyond chunk boundaries).
  5. Player Returns

    • P1 logs back in or moves back into the item's render distance.
  6. Item Pickup Behavior

    • P1 can pick up the item as expected.
    • Player 2 (P2), however, sees the item still on the ground and can pick it up infinitely.
  7. Test Persistence

    • P2 continues picking up the item multiple times, duplicating it.
    • If P2 relogs or moves out of render distance and returns, the "ghost" item on the ground disappears, but the duplicated items remain in their inventory.

Server version

Current Purpur Version: 1.21.1-2329-803bf62 (MC: 1.21.1)*

RPGDrops Version

RPGDrops version 1.0.2

ProtocolLib Version

ProtocolLib version 5.4.0-SNAPSHOT-741

LoneLibs Version

LoneLibs version 1.0.65

FULL server log

https://mclo.gs/JnRkvvN

Error (optional)

Problematic items yml configuration file (optional)

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

https://youtu.be/4jGg66NvUW8

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions