if its possible to add an option into the configoration that makes players drop their bags when they are killed in a pvp zone
Option to drop bags when in pvp zonesSuggestion
The challenge here is determining what constitutes a PVP zone. Zone Manager doesn't have a concept of a PVP zone. As far as I know, a "PVP zone" is a zone in which PVE/PVP plugins are dynamically altering the outcome of events.
Someone recently asked for this feature for DynamicPVP zones, and I implemented it as a standalone plugin that talked to Zone Manager, Restore Upon Death, and Dynamic PVP, which is a reasonable way to implement this according to what they requested. However, that solution turned out to not work for that person's use case because that person didn't realize that the zones were actually created by Auto Zones, not by DynamicPVP, and Auto Zones doesn't currently keep track of its zones or have any way for another plugin to ask it whether a given zone is a PVP zone.
Looking more into this, Auto Zones calls True PVE to potentially set each zone to the "exclude" ruleset. Presumably the failed plugin above could be updated to call TruePVE to determine whether a given zone has the "exclude" ruleset to work for more use cases. If that works well, we could consider moving that logic directly into Restore Upon Death.
@wajeeh93 Which zone/pve/pvp plugins are you using?
Sorry to revive a dead thread, but we are looking for this functionality on our server. Loot drop in PvP only zones. We are using RuD, TruePVE, and DynamicPVP
Would you still be willing to create this plugin @WhiteThunder?
Here is the plugin I was describing before. Not sure if it works for your use case.
This is nearly perfect! Is there a way to control what gets restored in pvp?
Im new to coding but does this logic workout: Add your pvp checks into RuD under RestorePlayer -> if any true then call an added RestorePvpItems with the wanted container restore, other wise RestoreAllItems
Such control would probably be best baked into RUD, but it would also be possible to expose a hook to allow another plugin to tell RUD which items to save.
Love to still implent this into RUD, any chance of that happening anytime soon? AutoZones creates the zones also in my server, but then puts them in a data file in zone manager, could we possibly as flag or? SOrry not so savy yet in this.
WhiteThunder
Such control would probably be best baked into RUD, but it would also be possible to expose a hook to allow another plugin to tell RUD which items to save.
WhiteThunder
Here is the plugin I was describing before. Not sure if it works for your use case.
Modified your Github to use ZoneManager, if servers are only using ZoneManager for PVP zones.