Hi! We keep backpacks on death. Backpacks are disabled in /duel. But, if "gather all" function is enabled, all kits are dropped inside /backpack! Players just leave the duel with new kits.
Backpacks.gather exploit in DuelistFixed
Disable gather mode for now.
I briefly considered that this type of issue could occur, while developing gather mode, but I figured it might not be an issue. Particularly, if the player is respawned into the event, gather mode is automatically paused, to prevent the backpack collecting the event gear set. I'm guessing in this case, the player is not respawning when being added to the event.
Gather mode is also automatically paused for one frame when an item is removed from the player inventory, but apparently in the case of duelist, the player joins the event naked.
One option would be to make Backpacks call the existing hooks to check if the backpack is allowed to be opened, whenever gathering an item. Could possibly add new hooks as well. However, this could have significant performance consequences, so I'm not sure if this is the way to go. There are some alternative designs, but those would require additional changes in other plugins and would take some time.
I think it's fixed now. Thank you!
Locked automatically