Hey, i saw an earlier Post, but there was no activity.
Any hook or api can be provided to clear an online/offline player backpack content?
Example:
Long server period: player want a blueprint/backpack etc delete for X szerver reward point.
Rest of the Code is fine(I add them into the AdminMenu as a handled option for the selected palyer), also i was be able to Null the backpack data json from another plugin but for the online players on disconnect most probabaly it was saved again from plugin memory.
Before i start to hack more and waste some time, I would like to ask there is any easier way tó do this or request a hook or api for this?
Support player backpacks clear from other pluginsSolved
Sure, I can add an API method, possibly a server/admin command, and possibly a player command to wipe their own backpack.
Would help to understand the concrete use cases in more detail in case there's a better way to solve the original problem. I don't understand this model of a player wiping their backpack for points. Would you reward them based on exactly the items that were in it? If so, why not give them a more specific way to trade items for points, instead of doing it via the backpack?
The concept behind the point "punishment" on the given server not target the backpack reset specially, it is just part of it. The point reduction for this "reset me everything after two week" request on a monthly server is to avoid the constant maintanence of the admins, and lower the amount of request.
Also, the other example for this need, when our players want to chage the original ranks with permissions what was requested by them on server start with for example a Hardcore play style ránk, where a bare minimum of plugin features are enable and also all previous stat/item/building/etc cleared as fresh start inbetween two wipe. Also, it cost them reward point.
From my point of view, i think a server/admin command shall be fine and enough, if a user want a clear, hé most probabaly want more then just a backpack clear, like my other example above.
I know.. They are masoist... But this is what the Rust did with the people.. They like the pain 😉
If you need more detail, or this not exatly answer your question, just let me know. I also glad to help if some demo version need to be tested
This has been implemented in 3.5.0, which is currently available for download in the beta thread.
https://umod.org/community/backpacks/31436-backpacks-beta-350
Hey WhiteThunder,
Thanks, i will check it.
Merged post
Hey @WhiteThunder , I checked the requested BP delete API with my changes via another plugin.
Works like expected. Thank you for the update.