Possible to have Backpacks only drop in PVP Zone Manager Zone?Solved

Is it possible to have Backpacks only drop in PVP Zone Manager Zones? The rest of my map is PVE, in the PVE Zones I'd like players to keep their backpacks on death but in the PVP Zones using Zone Manager I'd like players tro drop their backpacks.

Is this possible?

Which plugin are you using to dictate whether a given zone is a PvP zone?

If using the DynamicPVP plugin from uMod, it would be quite simple to make an addon plugin which would communicate with both plugins to facilitate this. I have created a similar addon plugin for Restore Upon Death (https://github.com/WheteThunger/NoRestoreInDynamicPVPZone). The same concept could easily be applied to make an addon plugin for Backpacks, either by using the CanDropBackpack hook to block dropping if the player is not in a PvP zone (while Backpacks is configured to drop all the time), or by explicitly dropping via the Backpacks API when the player is not in a PvP zone (while Backpacks is not configured to drop).

That is great news! I'm using DynamicPVP Plugin! This would be so amazing to see and I think would be super useful for many other servers as PVE servers are very popular lately.

NKXTQs24ExGTuL8.jpg WhiteThunder

Which plugin are you using to dictate whether a given zone is a PvP zone?

If using the DynamicPVP plugin from uMod, it would be quite simple to make an addon plugin which would communicate with both plugins to facilitate this. I have created a similar addon plugin for Restore Upon Death (https://github.com/WheteThunger/NoRestoreInDynamicPVPZone). The same concept could easily be applied to make an addon plugin for Backpacks, either by using the CanDropBackpack hook to block dropping if the player is not in a PvP zone (while Backpacks is configured to drop all the time), or by explicitly dropping via the Backpacks API when the player is not in a PvP zone (while Backpacks is not configured to drop).

I would be so grateful if we could do this as I'm unfamiliar with plugin editing myself

I will try to do this in the next week, as an addon plugin. If it's successful, I'll consider incorporating it directly into Backpqcks eventually.

NKXTQs24ExGTuL8.jpg WhiteThunder

I will try to do this in the next week, as an addon plugin. If it's successful, I'll consider incorporating it directly into Backpqcks eventually.

Really appreciate you doing this, would make my server perfectly flawless.
NKXTQs24ExGTuL8.jpg WhiteThunder

Here is the plugin. Note, I have not tested it. Please confirm that it works correctly (drops in Dynamic PVP zones, during Dynamic PVP delay, and not at other times).

https://github.com/WheteThunger/DropBackpackInDynamicPVPZone

It works flawlessly! You are a legend, thanks so much for taking the time to do this for the Rust community. This should benefit lots of people appreciate you :)

Can you change the status to solved :)

Locked automatically