Dupe/duplication item in the transport storage [Aeviium] #176

Open
opened 2024-04-23 19:27:58 +00:00 by Aeviium · 1 comment

Describe the bug
Item duplication in the transport storage after the owner changes and returns

To Reproduce
Steps to reproduce the behavior:

  1. Player 1 to go spawn vehicle with storage
  2. Player 1 change owner vehicle on player 2
  3. Player 2 that be new owner, spawned this vehicle
  4. Player 2 add to storage anyone items
  5. Player 2 exit at menu vehicle
  6. Player 2 leave from game
  7. Player 2 join in the game
  8. Player 2 spawn vehicle and open it storage and take items
  9. later Player 2 a back that vehicle OLD owner (Player 1)
  10. Player 1 leave form game and join.
  11. Player 1 check storage - storage empty
  12. Player 1 give vehicle again player 2
  13. Player 2 leave and join the game
  14. Player 2 spawn vehicle and open storage
  15. Player 2 take dupe items
  16. Player 2 leave+join in game and open storage
  17. Player 2 take dupe items
    18.... ∞

Expected behavior
I did not understand the question, because English is not my native language. I wish there wasn't this bug. It makes it impossible to use the plugin.

link on video
https://www.dropbox.com/scl/fi/pmzpc72dukouk9fu4gwlq/duplicate-with-vehicle.mp4?rlkey=xffdjapvvs04aifbe9lxq6ptz&dl=0

Server and Plugin Information

  • cmi, core protect, animatic scoreboard, towny, grim
  • VehiclesPlus Version: 2.4.5 v2
  • Pro
  • Spigot 1.16.3

Additional context
I don't know. Maybe I could recommend taking a look at the hashmap method that stores items from the transport inventory, apparently it is incorrectly reset for new transport owners during onleave and onjoin events

Thank you in advance

**Describe the bug** Item duplication in the transport storage after the owner changes and returns **To Reproduce** Steps to reproduce the behavior: 1. Player 1 to go spawn vehicle with storage 2. Player 1 change owner vehicle on player 2 3. Player 2 that be new owner, spawned this vehicle 4. Player 2 add to storage anyone items 5. Player 2 exit at menu vehicle 6. Player 2 leave from game 7. Player 2 join in the game 8. Player 2 spawn vehicle and open it storage and take items 9. later Player 2 a back that vehicle OLD owner (Player 1) 10. Player 1 leave form game and join. 11. Player 1 check storage - storage empty 12. Player 1 give vehicle again player 2 13. Player 2 leave and join the game 14. Player 2 spawn vehicle and open storage 15. Player 2 take dupe items 16. Player 2 leave+join in game and open storage 17. Player 2 take dupe items 18.... ∞ **Expected behavior** I did not understand the question, because English is not my native language. I wish there wasn't this bug. It makes it impossible to use the plugin. **link on video** https://www.dropbox.com/scl/fi/pmzpc72dukouk9fu4gwlq/duplicate-with-vehicle.mp4?rlkey=xffdjapvvs04aifbe9lxq6ptz&dl=0 **Server and Plugin Information** - cmi, core protect, animatic scoreboard, towny, grim - VehiclesPlus Version: 2.4.5 v2 - Pro - Spigot 1.16.3 **Additional context** I don't know. Maybe I could recommend taking a look at the hashmap method that stores items from the transport inventory, apparently it is incorrectly reset for new transport owners during onleave and onjoin events Thank you in advance
Aeviium added the
Bug
label 2024-04-23 19:27:58 +00:00
SBDeveloper added the
Needs Confirmation
label 2024-04-24 16:43:17 +00:00
SBDeveloper self-assigned this 2024-04-24 16:43:29 +00:00
Owner

Checking for this bug in v3, will not be fixed in v2 because v3 is planned for release soon.

Checking for this bug in v3, will not be fixed in v2 because v3 is planned for release soon.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SBDevelopment/VehiclesPlus#176
No description provided.