Ability to drop in certain zone IDs and through external callsSolved
Not really sure if I worded that right.  Basically I want Nivex's raid base plugin to be able to force a backpack to drop on death (inside a PVP raid base bubble).  He tried it for me, but my server's global "does not drop on death" seems to be taking precendence.  Is there any API type stuff you can add in so other plugin developers can just "hey drop the backpack now" call on it?
One thing you could try is to enable backpacks to drop on death globally, and then use another plugin to hook CanDropBackpack to prevent the drop unless in a certain zone. Keep in mind that if that plugin is ever unloaded for any reason, backpacks will start dropping on death everywhere.
I'd rather leave it globaly to NOT drop (for just that reason) but have some sort of hook or something third party plugins can fire off to drop a backpack.  I have zero programming experience but in my head it's like a "DropBackpack ID" command that makes it fall etc.

So then plugins like RaidBases could "on player death" fire off that command if they are in a PVP bubble etc.

As it stands right now people can just abuse the hell out of backpacks on PVE servers in those very few PVP situations (we only let a few PVP raid bases spawn but they have better loot etc.).  They just raid naked with all their boom in the backpack
It should be fairly straight forward to add an API method like DropBackpack(steamid). However, it's not immediately clear whether that API should honor the keepondeath permission. Some servers use that permission only for admins, in which case they probably want to keep their backpack all the time. Other servers may only allow VIPs to keep their backpack using the permission, and they would likely also want the API to force drop the backpack.

One way to address this ambiguity is to have the API not honor the keepondeath permission, and add an optional permission to whichever plugin calls the API to have it conditionally not call it for some players. This is typically the approach I have used for other plugins that have this kind of conundrum.

Backpacks v3.4.0 now has an API method to drop a player's backpack, so the maintainer of Raidable Bases can implement logic to call it if the player dies in specific zones.

Locked automatically