Need to know that some barricade or structure on the server has been destroyed via destroyBarricade or destroyStructure
Confused on why would you need to do this. The only instance of this method actually being used would be when salvaging, and there is an event for that already. Any other invocations would be done by a plugin. Typically, the vanilla code isn’t modified to make plugins work with other plugins.
It would be good to provide your use case for this as it seems like there would be a better route than adding events for these two methods. If you have a plugin that you wish to monitor, you should either request the developer to add an API, modify the plugin yourself, or ditch the plugin for your own implementation. And if it is your own plugin invoking these methods, then you are better off adding an event then and there.
The only instance of this method actually being used would be when salvaging
Nope.
I could use an optional event on damage, but the problem is that some plugin after mine can cancel damage or change damage (This also applies to the salvage event). Also some plugin can directly call the destroy method.
modify the plugin yourself, or ditch the plugin for your own implementation.
Yes, thank you. I really want to remake a ten customer’s plugins to complete 1 order .
I also want to iterate all regions to make sure 100% that the build was destroyed by something or someone without editing a ten customer’s plugins. And I also have to make sure the customer doesn’t buy a plugin that won’t use my API or that I’ll need to edit.
Does this kind of use case explain it?
Make one event that does more good than harm? No, we need to come up with a thousand and one reasons not to do it.
Next time I’ll send requests to Nelson by pigeon mail to make sure no one puts their two cents in
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.