{"action":"closed","number":47,"pull_request":{"url":"https://api.github.com/repos/lishid/Orebfuscator/pulls/47","id":27572444,"html_url":"https://github.com/lishid/Orebfuscator/pull/47","diff_url":"https://github.com/lishid/Orebfuscator/pull/47.diff","patch_url":"https://github.com/lishid/Orebfuscator/pull/47.patch","issue_url":"https://api.github.com/repos/lishid/Orebfuscator/issues/47","number":47,"state":"closed","locked":false,"title":"Fix Spigot anti-xray disabling","user":{"login":"ruany","id":917680,"avatar_url":"https://avatars.githubusercontent.com/u/917680?v=3","gravatar_id":"","url":"https://api.github.com/users/ruany","html_url":"https://github.com/ruany","followers_url":"https://api.github.com/users/ruany/followers","following_url":"https://api.github.com/users/ruany/following{/other_user}","gists_url":"https://api.github.com/users/ruany/gists{/gist_id}","starred_url":"https://api.github.com/users/ruany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruany/subscriptions","organizations_url":"https://api.github.com/users/ruany/orgs","repos_url":"https://api.github.com/users/ruany/repos","events_url":"https://api.github.com/users/ruany/events{/privacy}","received_events_url":"https://api.github.com/users/ruany/received_events","type":"User","site_admin":false},"body":"The current code causes this error on enable:\r\n\r\n[14:51:42 ERROR]: [OFC] java.lang.NoSuchFieldException: spigotConfig\r\n[14:51:42 WARN]: java.lang.NoSuchFieldException: spigotConfig\r\n[14:51:42 WARN]:        at java.lang.Class.getDeclaredField(Class.java:2062)\r\n[14:51:42 WARN]:        at com.lishid.orebfuscator.utils.ReflectionHelper.getPrivateField(ReflectionHelper.java:27)\r\n[14:51:42 WARN]:        at com.lishid.orebfuscator.utils.ReflectionHelper.getPrivateField(ReflectionHelper.java:38)\r\n[14:51:42 WARN]:        at com.lishid.orebfuscator.internal.MinecraftInternals.tryDisableSpigotAntiXray(MinecraftInternals.java:53)\r\n\r\nThis pull request fixes that error. The world handle is not a direct instance of World, so attempting to get a declared field from a different class will fail. spigotConfig is a public field, anyway.","created_at":"2015-01-18T15:13:35Z","updated_at":"2015-01-18T15:33:37Z","closed_at":"2015-01-18T15:33:37Z","merged_at":"2015-01-18T15:33:37Z","merge_commit_sha":"762cf616bc1c85fbb10c159e5e48903758818dff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lishid/Orebfuscator/pulls/47/commits","review_comments_url":"https://api.github.com/repos/lishid/Orebfuscator/pulls/47/comments","review_comment_url":"https://api.github.com/repos/lishid/Orebfuscator/pulls/comments/{number}","comments_url":"https://api.github.com/repos/lishid/Orebfuscator/issues/47/comments","statuses_url":"https://api.github.com/repos/lishid/Orebfuscator/statuses/4cdc56e00416c10cfb1f7bda380a207b2a166255","head":{"label":"ruany:patch-2","ref":"patch-2","sha":"4cdc56e00416c10cfb1f7bda380a207b2a166255","user":{"login":"ruany","id":917680,"avatar_url":"https://avatars.githubusercontent.com/u/917680?v=3","gravatar_id":"","url":"https://api.github.com/users/ruany","html_url":"https://github.com/ruany","followers_url":"https://api.github.com/users/ruany/followers","following_url":"https://api.github.com/users/ruany/following{/other_user}","gists_url":"https://api.github.com/users/ruany/gists{/gist_id}","starred_url":"https://api.github.com/users/ruany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruany/subscriptions","organizations_url":"https://api.github.com/users/ruany/orgs","repos_url":"https://api.github.com/users/ruany/repos","events_url":"https://api.github.com/users/ruany/events{/privacy}","received_events_url":"https://api.github.com/users/ruany/received_events","type":"User","site_admin":false},"repo":{"id":29429605,"name":"Orebfuscator","full_name":"ruany/Orebfuscator","owner":{"login":"ruany","id":917680,"avatar_url":"https://avatars.githubusercontent.com/u/917680?v=3","gravatar_id":"","url":"https://api.github.com/users/ruany","html_url":"https://github.com/ruany","followers_url":"https://api.github.com/users/ruany/followers","following_url":"https://api.github.com/users/ruany/following{/other_user}","gists_url":"https://api.github.com/users/ruany/gists{/gist_id}","starred_url":"https://api.github.com/users/ruany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruany/subscriptions","organizations_url":"https://api.github.com/users/ruany/orgs","repos_url":"https://api.github.com/users/ruany/repos","events_url":"https://api.github.com/users/ruany/events{/privacy}","received_events_url":"https://api.github.com/users/ruany/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ruany/Orebfuscator","description":"Orebfuscator - Anti X-RAY","fork":true,"url":"https://api.github.com/repos/ruany/Orebfuscator","forks_url":"https://api.github.com/repos/ruany/Orebfuscator/forks","keys_url":"https://api.github.com/repos/ruany/Orebfuscator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruany/Orebfuscator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruany/Orebfuscator/teams","hooks_url":"https://api.github.com/repos/ruany/Orebfuscator/hooks","issue_events_url":"https://api.github.com/repos/ruany/Orebfuscator/issues/events{/number}","events_url":"https://api.github.com/repos/ruany/Orebfuscator/events","assignees_url":"https://api.github.com/repos/ruany/Orebfuscator/assignees{/user}","branches_url":"https://api.github.com/repos/ruany/Orebfuscator/branches{/branch}","tags_url":"https://api.github.com/repos/ruany/Orebfuscator/tags","blobs_url":"https://api.github.com/repos/ruany/Orebfuscator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruany/Orebfuscator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruany/Orebfuscator/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruany/Orebfuscator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruany/Orebfuscator/statuses/{sha}","languages_url":"https://api.github.com/repos/ruany/Orebfuscator/languages","stargazers_url":"https://api.github.com/repos/ruany/Orebfuscator/stargazers","contributors_url":"https://api.github.com/repos/ruany/Orebfuscator/contributors","subscribers_url":"https://api.github.com/repos/ruany/Orebfuscator/subscribers","subscription_url":"https://api.github.com/repos/ruany/Orebfuscator/subscription","commits_url":"https://api.github.com/repos/ruany/Orebfuscator/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruany/Orebfuscator/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruany/Orebfuscator/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruany/Orebfuscator/issues/comments/{number}","contents_url":"https://api.github.com/repos/ruany/Orebfuscator/contents/{+path}","compare_url":"https://api.github.com/repos/ruany/Orebfuscator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruany/Orebfuscator/merges","archive_url":"https://api.github.com/repos/ruany/Orebfuscator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruany/Orebfuscator/downloads","issues_url":"https://api.github.com/repos/ruany/Orebfuscator/issues{/number}","pulls_url":"https://api.github.com/repos/ruany/Orebfuscator/pulls{/number}","milestones_url":"https://api.github.com/repos/ruany/Orebfuscator/milestones{/number}","notifications_url":"https://api.github.com/repos/ruany/Orebfuscator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruany/Orebfuscator/labels{/name}","releases_url":"https://api.github.com/repos/ruany/Orebfuscator/releases{/id}","created_at":"2015-01-18T15:06:07Z","updated_at":"2015-01-18T15:06:07Z","pushed_at":"2015-01-18T15:10:56Z","git_url":"git://github.com/ruany/Orebfuscator.git","ssh_url":"git@github.com:ruany/Orebfuscator.git","clone_url":"https://github.com/ruany/Orebfuscator.git","svn_url":"https://github.com/ruany/Orebfuscator","homepage":"http://forums.bukkit.org/threads/38385/","size":1297,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lishid:master","ref":"master","sha":"2b150cc6165c79f892bd87d03b63bbde801b7753","user":{"login":"lishid","id":609710,"avatar_url":"https://avatars.githubusercontent.com/u/609710?v=3","gravatar_id":"","url":"https://api.github.com/users/lishid","html_url":"https://github.com/lishid","followers_url":"https://api.github.com/users/lishid/followers","following_url":"https://api.github.com/users/lishid/following{/other_user}","gists_url":"https://api.github.com/users/lishid/gists{/gist_id}","starred_url":"https://api.github.com/users/lishid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lishid/subscriptions","organizations_url":"https://api.github.com/users/lishid/orgs","repos_url":"https://api.github.com/users/lishid/repos","events_url":"https://api.github.com/users/lishid/events{/privacy}","received_events_url":"https://api.github.com/users/lishid/received_events","type":"User","site_admin":false},"repo":{"id":2452364,"name":"Orebfuscator","full_name":"lishid/Orebfuscator","owner":{"login":"lishid","id":609710,"avatar_url":"https://avatars.githubusercontent.com/u/609710?v=3","gravatar_id":"","url":"https://api.github.com/users/lishid","html_url":"https://github.com/lishid","followers_url":"https://api.github.com/users/lishid/followers","following_url":"https://api.github.com/users/lishid/following{/other_user}","gists_url":"https://api.github.com/users/lishid/gists{/gist_id}","starred_url":"https://api.github.com/users/lishid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lishid/subscriptions","organizations_url":"https://api.github.com/users/lishid/orgs","repos_url":"https://api.github.com/users/lishid/repos","events_url":"https://api.github.com/users/lishid/events{/privacy}","received_events_url":"https://api.github.com/users/lishid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lishid/Orebfuscator","description":"Orebfuscator - Anti X-RAY","fork":false,"url":"https://api.github.com/repos/lishid/Orebfuscator","forks_url":"https://api.github.com/repos/lishid/Orebfuscator/forks","keys_url":"https://api.github.com/repos/lishid/Orebfuscator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lishid/Orebfuscator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lishid/Orebfuscator/teams","hooks_url":"https://api.github.com/repos/lishid/Orebfuscator/hooks","issue_events_url":"https://api.github.com/repos/lishid/Orebfuscator/issues/events{/number}","events_url":"https://api.github.com/repos/lishid/Orebfuscator/events","assignees_url":"https://api.github.com/repos/lishid/Orebfuscator/assignees{/user}","branches_url":"https://api.github.com/repos/lishid/Orebfuscator/branches{/branch}","tags_url":"https://api.github.com/repos/lishid/Orebfuscator/tags","blobs_url":"https://api.github.com/repos/lishid/Orebfuscator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lishid/Orebfuscator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lishid/Orebfuscator/git/refs{/sha}","trees_url":"https://api.github.com/repos/lishid/Orebfuscator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lishid/Orebfuscator/statuses/{sha}","languages_url":"https://api.github.com/repos/lishid/Orebfuscator/languages","stargazers_url":"https://api.github.com/repos/lishid/Orebfuscator/stargazers","contributors_url":"https://api.github.com/repos/lishid/Orebfuscator/contributors","subscribers_url":"https://api.github.com/repos/lishid/Orebfuscator/subscribers","subscription_url":"https://api.github.com/repos/lishid/Orebfuscator/subscription","commits_url":"https://api.github.com/repos/lishid/Orebfuscator/commits{/sha}","git_commits_url":"https://api.github.com/repos/lishid/Orebfuscator/git/commits{/sha}","comments_url":"https://api.github.com/repos/lishid/Orebfuscator/comments{/number}","issue_comment_url":"https://api.github.com/repos/lishid/Orebfuscator/issues/comments/{number}","contents_url":"https://api.github.com/repos/lishid/Orebfuscator/contents/{+path}","compare_url":"https://api.github.com/repos/lishid/Orebfuscator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lishid/Orebfuscator/merges","archive_url":"https://api.github.com/repos/lishid/Orebfuscator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lishid/Orebfuscator/downloads","issues_url":"https://api.github.com/repos/lishid/Orebfuscator/issues{/number}","pulls_url":"https://api.github.com/repos/lishid/Orebfuscator/pulls{/number}","milestones_url":"https://api.github.com/repos/lishid/Orebfuscator/milestones{/number}","notifications_url":"https://api.github.com/repos/lishid/Orebfuscator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lishid/Orebfuscator/labels{/name}","releases_url":"https://api.github.com/repos/lishid/Orebfuscator/releases{/id}","created_at":"2011-09-24T23:34:43Z","updated_at":"2015-01-18T15:32:33Z","pushed_at":"2015-01-18T15:33:37Z","git_url":"git://github.com/lishid/Orebfuscator.git","ssh_url":"git@github.com:lishid/Orebfuscator.git","clone_url":"https://github.com/lishid/Orebfuscator.git","svn_url":"https://github.com/lishid/Orebfuscator","homepage":"http://forums.bukkit.org/threads/38385/","size":1297,"stargazers_count":21,"watchers_count":21,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":3,"forks":32,"open_issues":3,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lishid/Orebfuscator/pulls/47"},"html":{"href":"https://github.com/lishid/Orebfuscator/pull/47"},"issue":{"href":"https://api.github.com/repos/lishid/Orebfuscator/issues/47"},"comments":{"href":"https://api.github.com/repos/lishid/Orebfuscator/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/lishid/Orebfuscator/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/lishid/Orebfuscator/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/lishid/Orebfuscator/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/lishid/Orebfuscator/statuses/4cdc56e00416c10cfb1f7bda380a207b2a166255"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"lishid","id":609710,"avatar_url":"https://avatars.githubusercontent.com/u/609710?v=3","gravatar_id":"","url":"https://api.github.com/users/lishid","html_url":"https://github.com/lishid","followers_url":"https://api.github.com/users/lishid/followers","following_url":"https://api.github.com/users/lishid/following{/other_user}","gists_url":"https://api.github.com/users/lishid/gists{/gist_id}","starred_url":"https://api.github.com/users/lishid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lishid/subscriptions","organizations_url":"https://api.github.com/users/lishid/orgs","repos_url":"https://api.github.com/users/lishid/repos","events_url":"https://api.github.com/users/lishid/events{/privacy}","received_events_url":"https://api.github.com/users/lishid/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}