Since last rust update "noboxloot" don't works on backpacks. Now players can steal items at zones (arena and whatever). How to fix this?
https://www.youtube.com/watch?v=amwaTxZRr6c
Players can open backpack while in an Arena eventSolved
If I understood the video correctly, the exploit is that players can place items from an event in their backpack, leave the event, and then take the items back out.
Backpacks is supposed to automatically block opening during an event, so it appears that's not working. The code for that was changed a few versions ago to be compatible with the new Zone Manager so I wonder if there was a bug introduced in that change.
Which version of Backpacks and Zone Manager are you using?
That's correct they can steal items from event.
I have place a small box for test "noboxloot" and there it works but not on backpacks.
This is my versions should be both on last version:
"Zone Manager" (3.0.91) by k1lly0u (7.76s) - ZoneManager.cs
"Backpacks" (3.5.1) by LaserHydra (1.06s) - Backpacks.cs
Oh sorry, Event Manager, not Zone Manager. AFAIK The 4.x beta is still ongoing. If you are still using Event Manager 3.x, you could try using Backpacks 3.3.0. If those work together, then it was indeed likely a bug introduced in Backpacks 3.4.0.
I don't use Event Manager i use Arena from other website. I thought Backpacks works with ZoneManager together.
Ah, I see. To some extent they are compatible plugins. For example, the Zone Manager patch a month ago included a bug fix to allow players to open their own backpack if the NoPlayerLoot flag was used, because that flag was only intended to prevent players from looting each other, not themself, which is technically how looting backpacks works. Perhaps you are also using the NoPlayerLoot flag on that zone and noticed this issue started after updating Zone Manager.phlex1337
I don't use Event Manager i use Arena from other website. I thought Backpacks works with ZoneManager together.
I don't see how it could have been related to the latest Rust update (as your original post suggests) since Zone Manager uses the CanLootEntity hook, and Backpacks have never used actual entities for its containers so the NoBoxLoot flag never prevented opening backpacks as far as I can tell.
Since the Backpacks plugin already blocks opening the backpack while in an EM event, and nobody has complained about that as far as I can see, it sounds like the solution here is to also block opening backpacks when in an Arena event. I don't see any API methods in the Arena plugin, so I'll reach out to the plugin maintainer to ask if there is one, or if one can be added.
Merged post
Assuming the Arena plugin filename is just Arena.cs, I've made an update that should work, according to k1lly0u's statement that the
IsEventPlayer method exists in the plugin. Please download the modified version of Backpacks here and let me know if that fixes the issue.Merged post
@phlex1337 Please let me know if the above patch works for you. I am holding off on releasing the next update until the fix can be verified, which I cannot do myself since I do not have access to the Arena plugin.
I've gone ahead and released the patch for this in v3.5.2. Marking as solved.