{"action":"created","issue":{"url":"https://api.github.com/repos/cuberite/cuberite/issues/3022","repository_url":"https://api.github.com/repos/cuberite/cuberite","labels_url":"https://api.github.com/repos/cuberite/cuberite/issues/3022/labels{/name}","comments_url":"https://api.github.com/repos/cuberite/cuberite/issues/3022/comments","events_url":"https://api.github.com/repos/cuberite/cuberite/issues/3022/events","html_url":"https://github.com/cuberite/cuberite/pull/3022","id":134606649,"number":3022,"title":"Fix for  #3011","user":{"login":"flx5","id":1330854,"avatar_url":"https://avatars.githubusercontent.com/u/1330854?v=3","gravatar_id":"","url":"https://api.github.com/users/flx5","html_url":"https://github.com/flx5","followers_url":"https://api.github.com/users/flx5/followers","following_url":"https://api.github.com/users/flx5/following{/other_user}","gists_url":"https://api.github.com/users/flx5/gists{/gist_id}","starred_url":"https://api.github.com/users/flx5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flx5/subscriptions","organizations_url":"https://api.github.com/users/flx5/orgs","repos_url":"https://api.github.com/users/flx5/repos","events_url":"https://api.github.com/users/flx5/events{/privacy}","received_events_url":"https://api.github.com/users/flx5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-18T15:13:57Z","updated_at":"2016-02-18T15:34:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cuberite/cuberite/pulls/3022","html_url":"https://github.com/cuberite/cuberite/pull/3022","diff_url":"https://github.com/cuberite/cuberite/pull/3022.diff","patch_url":"https://github.com/cuberite/cuberite/pull/3022.patch"},"body":"Hey, this should fix the issue  #3011.\r\n\r\nI could not find out how documentation for lua is generated.\r\n\r\nIt would be nice to get a hint for that :) \r\n\r\nExample usage:\r\n\r\n```\r\nfunction Initialize(Plugin)\r\n\tPlugin:SetName(\"Example\")\r\n\tPlugin:SetVersion(1)\r\n\r\n\tcPluginManager.AddHook(cPluginManager.HOOK_EXPLOSION_BREAKING_BLOCKS, OnExplosion)\r\n\r\n\tLOG(\"Initialised \" .. Plugin:GetName() .. \" v.\" .. Plugin:GetVersion())\r\n\treturn true\r\nend\r\n\r\n\r\nfunction OnExplosion(World, DestroyedBlocks, X, Y, Z, Source, SourceData)\r\n\tif Source == esMonster then\r\n\t\tDestroyedBlocks:Clear()\r\n\tend\r\n\treturn true\r\nend\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/cuberite/cuberite/issues/comments/185777888","html_url":"https://github.com/cuberite/cuberite/pull/3022#issuecomment-185777888","issue_url":"https://api.github.com/repos/cuberite/cuberite/issues/3022","id":185777888,"user":{"login":"NiLSPACE","id":1160867,"avatar_url":"https://avatars.githubusercontent.com/u/1160867?v=3","gravatar_id":"","url":"https://api.github.com/users/NiLSPACE","html_url":"https://github.com/NiLSPACE","followers_url":"https://api.github.com/users/NiLSPACE/followers","following_url":"https://api.github.com/users/NiLSPACE/following{/other_user}","gists_url":"https://api.github.com/users/NiLSPACE/gists{/gist_id}","starred_url":"https://api.github.com/users/NiLSPACE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiLSPACE/subscriptions","organizations_url":"https://api.github.com/users/NiLSPACE/orgs","repos_url":"https://api.github.com/users/NiLSPACE/repos","events_url":"https://api.github.com/users/NiLSPACE/events{/privacy}","received_events_url":"https://api.github.com/users/NiLSPACE/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T15:34:46Z","updated_at":"2016-02-18T15:34:46Z","body":"I think it's better to simply add the needed parameter to the OnExplosion hook."}}