{"action":"opened","issue":{"url":"https://api.github.com/repos/OxideMod/Oxide/issues/628","labels_url":"https://api.github.com/repos/OxideMod/Oxide/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/OxideMod/Oxide/issues/628/comments","events_url":"https://api.github.com/repos/OxideMod/Oxide/issues/628/events","html_url":"https://github.com/OxideMod/Oxide/issues/628","id":130214106,"number":628,"title":"Rust: Only admin users call DoImmediateDemolish, Normal users call DoDemolish","user":{"login":"AEtherSurfer","id":193637,"avatar_url":"https://avatars.githubusercontent.com/u/193637?v=3","gravatar_id":"","url":"https://api.github.com/users/AEtherSurfer","html_url":"https://github.com/AEtherSurfer","followers_url":"https://api.github.com/users/AEtherSurfer/followers","following_url":"https://api.github.com/users/AEtherSurfer/following{/other_user}","gists_url":"https://api.github.com/users/AEtherSurfer/gists{/gist_id}","starred_url":"https://api.github.com/users/AEtherSurfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AEtherSurfer/subscriptions","organizations_url":"https://api.github.com/users/AEtherSurfer/orgs","repos_url":"https://api.github.com/users/AEtherSurfer/repos","events_url":"https://api.github.com/users/AEtherSurfer/events{/privacy}","received_events_url":"https://api.github.com/users/AEtherSurfer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-31T23:49:48Z","updated_at":"2016-01-31T23:49:48Z","closed_at":null,"body":"Current `OnStructureDemolish` hook is wired to `DoImmediateDemolish`.\r\n\r\n`DoImmediateDemolish` is only invoked by admin players.\r\n\r\nPlease change it to hook into `DoDemolish` function instead as that seems to be the function invoked by regular non admin players.\r\n\r\nMaybe add an `OnStructureDemolishAdmin` that hooks `DoImmediateDemolish`.\r\n\r\nReferences:\r\n- http://docs.oxidemod.org/rust/#onstructuredemolish\r\n- https://github.com/OxideMod/Oxide/commit/5c7ffe3fda668b36c508d4cdbe0f1cfc267be329#diff-192d9a78b0a735bc839b58dc38e85eaeR1132"}}