{"action":"opened","number":1220,"pull_request":{"url":"https://api.github.com/repos/OxideMod/Oxide/pulls/1220","id":147897934,"html_url":"https://github.com/OxideMod/Oxide/pull/1220","diff_url":"https://github.com/OxideMod/Oxide/pull/1220.diff","patch_url":"https://github.com/OxideMod/Oxide/pull/1220.patch","issue_url":"https://api.github.com/repos/OxideMod/Oxide/issues/1220","number":1220,"state":"open","locked":false,"title":"[New Hook] CanBeLooted","user":{"login":"Jake-Rich","id":13395306,"avatar_url":"https://avatars3.githubusercontent.com/u/13395306?v=4","gravatar_id":"","url":"https://api.github.com/users/Jake-Rich","html_url":"https://github.com/Jake-Rich","followers_url":"https://api.github.com/users/Jake-Rich/followers","following_url":"https://api.github.com/users/Jake-Rich/following{/other_user}","gists_url":"https://api.github.com/users/Jake-Rich/gists{/gist_id}","starred_url":"https://api.github.com/users/Jake-Rich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jake-Rich/subscriptions","organizations_url":"https://api.github.com/users/Jake-Rich/orgs","repos_url":"https://api.github.com/users/Jake-Rich/repos","events_url":"https://api.github.com/users/Jake-Rich/events{/privacy}","received_events_url":"https://api.github.com/users/Jake-Rich/received_events","type":"User","site_admin":false},"body":"Currently there is a hook before players are looted (CanLootPlayer) but there is no hook for other entities. Mod authors are forced to do a hacky workaround: ending looting one frame after it starts. \r\n\r\nThis adds a new hook: CanBeLooted(BaseEntity entity, BasePlayer looter) (return true to allow, false to block and null to allow default behavior.\r\n\r\nThis will not cause any conflicts as BasePlayer.CanBeLooted() overrides the base method entirely, so there is no way CanBeLooted() and CanLootPlayer will be called at the same time.","created_at":"2017-10-20T21:20:34Z","updated_at":"2017-10-20T21:20:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/OxideMod/Oxide/pulls/1220/commits","review_comments_url":"https://api.github.com/repos/OxideMod/Oxide/pulls/1220/comments","review_comment_url":"https://api.github.com/repos/OxideMod/Oxide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OxideMod/Oxide/issues/1220/comments","statuses_url":"https://api.github.com/repos/OxideMod/Oxide/statuses/f7712b7eea993dcecc6a355eabf6c44287e177fd","head":{"label":"Jake-Rich:patch-1","ref":"patch-1","sha":"f7712b7eea993dcecc6a355eabf6c44287e177fd","user":{"login":"Jake-Rich","id":13395306,"avatar_url":"https://avatars3.githubusercontent.com/u/13395306?v=4","gravatar_id":"","url":"https://api.github.com/users/Jake-Rich","html_url":"https://github.com/Jake-Rich","followers_url":"https://api.github.com/users/Jake-Rich/followers","following_url":"https://api.github.com/users/Jake-Rich/following{/other_user}","gists_url":"https://api.github.com/users/Jake-Rich/gists{/gist_id}","starred_url":"https://api.github.com/users/Jake-Rich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jake-Rich/subscriptions","organizations_url":"https://api.github.com/users/Jake-Rich/orgs","repos_url":"https://api.github.com/users/Jake-Rich/repos","events_url":"https://api.github.com/users/Jake-Rich/events{/privacy}","received_events_url":"https://api.github.com/users/Jake-Rich/received_events","type":"User","site_admin":false},"repo":{"id":93798592,"name":"Oxide","full_name":"Jake-Rich/Oxide","owner":{"login":"Jake-Rich","id":13395306,"avatar_url":"https://avatars3.githubusercontent.com/u/13395306?v=4","gravatar_id":"","url":"https://api.github.com/users/Jake-Rich","html_url":"https://github.com/Jake-Rich","followers_url":"https://api.github.com/users/Jake-Rich/followers","following_url":"https://api.github.com/users/Jake-Rich/following{/other_user}","gists_url":"https://api.github.com/users/Jake-Rich/gists{/gist_id}","starred_url":"https://api.github.com/users/Jake-Rich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jake-Rich/subscriptions","organizations_url":"https://api.github.com/users/Jake-Rich/orgs","repos_url":"https://api.github.com/users/Jake-Rich/repos","events_url":"https://api.github.com/users/Jake-Rich/events{/privacy}","received_events_url":"https://api.github.com/users/Jake-Rich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jake-Rich/Oxide","description":"Core mod and extensions for the Oxide mod framework.","fork":true,"url":"https://api.github.com/repos/Jake-Rich/Oxide","forks_url":"https://api.github.com/repos/Jake-Rich/Oxide/forks","keys_url":"https://api.github.com/repos/Jake-Rich/Oxide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jake-Rich/Oxide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jake-Rich/Oxide/teams","hooks_url":"https://api.github.com/repos/Jake-Rich/Oxide/hooks","issue_events_url":"https://api.github.com/repos/Jake-Rich/Oxide/issues/events{/number}","events_url":"https://api.github.com/repos/Jake-Rich/Oxide/events","assignees_url":"https://api.github.com/repos/Jake-Rich/Oxide/assignees{/user}","branches_url":"https://api.github.com/repos/Jake-Rich/Oxide/branches{/branch}","tags_url":"https://api.github.com/repos/Jake-Rich/Oxide/tags","blobs_url":"https://api.github.com/repos/Jake-Rich/Oxide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jake-Rich/Oxide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jake-Rich/Oxide/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jake-Rich/Oxide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jake-Rich/Oxide/statuses/{sha}","languages_url":"https://api.github.com/repos/Jake-Rich/Oxide/languages","stargazers_url":"https://api.github.com/repos/Jake-Rich/Oxide/stargazers","contributors_url":"https://api.github.com/repos/Jake-Rich/Oxide/contributors","subscribers_url":"https://api.github.com/repos/Jake-Rich/Oxide/subscribers","subscription_url":"https://api.github.com/repos/Jake-Rich/Oxide/subscription","commits_url":"https://api.github.com/repos/Jake-Rich/Oxide/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jake-Rich/Oxide/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jake-Rich/Oxide/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jake-Rich/Oxide/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jake-Rich/Oxide/contents/{+path}","compare_url":"https://api.github.com/repos/Jake-Rich/Oxide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jake-Rich/Oxide/merges","archive_url":"https://api.github.com/repos/Jake-Rich/Oxide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jake-Rich/Oxide/downloads","issues_url":"https://api.github.com/repos/Jake-Rich/Oxide/issues{/number}","pulls_url":"https://api.github.com/repos/Jake-Rich/Oxide/pulls{/number}","milestones_url":"https://api.github.com/repos/Jake-Rich/Oxide/milestones{/number}","notifications_url":"https://api.github.com/repos/Jake-Rich/Oxide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jake-Rich/Oxide/labels{/name}","releases_url":"https://api.github.com/repos/Jake-Rich/Oxide/releases{/id}","deployments_url":"https://api.github.com/repos/Jake-Rich/Oxide/deployments","created_at":"2017-06-08T23:01:46Z","updated_at":"2017-06-08T23:01:51Z","pushed_at":"2017-10-20T21:19:09Z","git_url":"git://github.com/Jake-Rich/Oxide.git","ssh_url":"git@github.com:Jake-Rich/Oxide.git","clone_url":"https://github.com/Jake-Rich/Oxide.git","svn_url":"https://github.com/Jake-Rich/Oxide","homepage":"","size":1533086,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"OxideMod:develop","ref":"develop","sha":"74537009ba2be9f118708544fbd29cf490feb669","user":{"login":"OxideMod","id":10712027,"avatar_url":"https://avatars3.githubusercontent.com/u/10712027?v=4","gravatar_id":"","url":"https://api.github.com/users/OxideMod","html_url":"https://github.com/OxideMod","followers_url":"https://api.github.com/users/OxideMod/followers","following_url":"https://api.github.com/users/OxideMod/following{/other_user}","gists_url":"https://api.github.com/users/OxideMod/gists{/gist_id}","starred_url":"https://api.github.com/users/OxideMod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OxideMod/subscriptions","organizations_url":"https://api.github.com/users/OxideMod/orgs","repos_url":"https://api.github.com/users/OxideMod/repos","events_url":"https://api.github.com/users/OxideMod/events{/privacy}","received_events_url":"https://api.github.com/users/OxideMod/received_events","type":"Organization","site_admin":false},"repo":{"id":24902146,"name":"Oxide","full_name":"OxideMod/Oxide","owner":{"login":"OxideMod","id":10712027,"avatar_url":"https://avatars3.githubusercontent.com/u/10712027?v=4","gravatar_id":"","url":"https://api.github.com/users/OxideMod","html_url":"https://github.com/OxideMod","followers_url":"https://api.github.com/users/OxideMod/followers","following_url":"https://api.github.com/users/OxideMod/following{/other_user}","gists_url":"https://api.github.com/users/OxideMod/gists{/gist_id}","starred_url":"https://api.github.com/users/OxideMod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OxideMod/subscriptions","organizations_url":"https://api.github.com/users/OxideMod/orgs","repos_url":"https://api.github.com/users/OxideMod/repos","events_url":"https://api.github.com/users/OxideMod/events{/privacy}","received_events_url":"https://api.github.com/users/OxideMod/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OxideMod/Oxide","description":"Core mod and extensions for the Oxide mod framework.","fork":false,"url":"https://api.github.com/repos/OxideMod/Oxide","forks_url":"https://api.github.com/repos/OxideMod/Oxide/forks","keys_url":"https://api.github.com/repos/OxideMod/Oxide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OxideMod/Oxide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OxideMod/Oxide/teams","hooks_url":"https://api.github.com/repos/OxideMod/Oxide/hooks","issue_events_url":"https://api.github.com/repos/OxideMod/Oxide/issues/events{/number}","events_url":"https://api.github.com/repos/OxideMod/Oxide/events","assignees_url":"https://api.github.com/repos/OxideMod/Oxide/assignees{/user}","branches_url":"https://api.github.com/repos/OxideMod/Oxide/branches{/branch}","tags_url":"https://api.github.com/repos/OxideMod/Oxide/tags","blobs_url":"https://api.github.com/repos/OxideMod/Oxide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OxideMod/Oxide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OxideMod/Oxide/git/refs{/sha}","trees_url":"https://api.github.com/repos/OxideMod/Oxide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OxideMod/Oxide/statuses/{sha}","languages_url":"https://api.github.com/repos/OxideMod/Oxide/languages","stargazers_url":"https://api.github.com/repos/OxideMod/Oxide/stargazers","contributors_url":"https://api.github.com/repos/OxideMod/Oxide/contributors","subscribers_url":"https://api.github.com/repos/OxideMod/Oxide/subscribers","subscription_url":"https://api.github.com/repos/OxideMod/Oxide/subscription","commits_url":"https://api.github.com/repos/OxideMod/Oxide/commits{/sha}","git_commits_url":"https://api.github.com/repos/OxideMod/Oxide/git/commits{/sha}","comments_url":"https://api.github.com/repos/OxideMod/Oxide/comments{/number}","issue_comment_url":"https://api.github.com/repos/OxideMod/Oxide/issues/comments{/number}","contents_url":"https://api.github.com/repos/OxideMod/Oxide/contents/{+path}","compare_url":"https://api.github.com/repos/OxideMod/Oxide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OxideMod/Oxide/merges","archive_url":"https://api.github.com/repos/OxideMod/Oxide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OxideMod/Oxide/downloads","issues_url":"https://api.github.com/repos/OxideMod/Oxide/issues{/number}","pulls_url":"https://api.github.com/repos/OxideMod/Oxide/pulls{/number}","milestones_url":"https://api.github.com/repos/OxideMod/Oxide/milestones{/number}","notifications_url":"https://api.github.com/repos/OxideMod/Oxide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OxideMod/Oxide/labels{/name}","releases_url":"https://api.github.com/repos/OxideMod/Oxide/releases{/id}","deployments_url":"https://api.github.com/repos/OxideMod/Oxide/deployments","created_at":"2014-10-07T17:23:45Z","updated_at":"2017-10-15T03:36:52Z","pushed_at":"2017-10-20T21:00:08Z","git_url":"git://github.com/OxideMod/Oxide.git","ssh_url":"git@github.com:OxideMod/Oxide.git","clone_url":"https://github.com/OxideMod/Oxide.git","svn_url":"https://github.com/OxideMod/Oxide","homepage":"","size":1683264,"stargazers_count":177,"watchers_count":177,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":135,"mirror_url":null,"archived":false,"open_issues_count":78,"forks":135,"open_issues":78,"watchers":177,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/OxideMod/Oxide/pulls/1220"},"html":{"href":"https://github.com/OxideMod/Oxide/pull/1220"},"issue":{"href":"https://api.github.com/repos/OxideMod/Oxide/issues/1220"},"comments":{"href":"https://api.github.com/repos/OxideMod/Oxide/issues/1220/comments"},"review_comments":{"href":"https://api.github.com/repos/OxideMod/Oxide/pulls/1220/comments"},"review_comment":{"href":"https://api.github.com/repos/OxideMod/Oxide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OxideMod/Oxide/pulls/1220/commits"},"statuses":{"href":"https://api.github.com/repos/OxideMod/Oxide/statuses/f7712b7eea993dcecc6a355eabf6c44287e177fd"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":26,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"Jake-Rich"}}