{"action":"created","comment":{"url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/comments/52796569","id":52796569,"diff_hunk":"@@ -923,4 +928,21 @@ public void onPlayerLogin(PlayerLoginEvent event)\n     {\n         TFM_ServerInterface.handlePlayerLogin(event);\n     }\n+    \n+    @EventHandler\n+    public void onPlayerConsumePotion(PlayerItemConsumeEvent event)\n+    {\n+        if (event.getItem().getType() == Material.POTION)\n+        {\n+            Collection<PotionEffect> fx = Potion.fromItemStack(event.getItem()).getEffects();\n+            for (PotionEffect effect : fx)\n+            {\n+                if (effect.getType() == PotionEffectType.INVISIBILITY && !TFM_AdminList.isSuperAdmin(event.getPlayer()))","path":"src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java","position":39,"original_position":39,"commit_id":"03cb0cd866c4dddfcab1ff91bc17c1c471f4637f","original_commit_id":"03cb0cd866c4dddfcab1ff91bc17c1c471f4637f","user":{"login":"MrImmaculate","id":6373732,"avatar_url":"https://avatars.githubusercontent.com/u/6373732?v=3","gravatar_id":"","url":"https://api.github.com/users/MrImmaculate","html_url":"https://github.com/MrImmaculate","followers_url":"https://api.github.com/users/MrImmaculate/followers","following_url":"https://api.github.com/users/MrImmaculate/following{/other_user}","gists_url":"https://api.github.com/users/MrImmaculate/gists{/gist_id}","starred_url":"https://api.github.com/users/MrImmaculate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrImmaculate/subscriptions","organizations_url":"https://api.github.com/users/MrImmaculate/orgs","repos_url":"https://api.github.com/users/MrImmaculate/repos","events_url":"https://api.github.com/users/MrImmaculate/events{/privacy}","received_events_url":"https://api.github.com/users/MrImmaculate/received_events","type":"User","site_admin":false},"body":"It is better to avoid nested if statements.","created_at":"2016-02-12T20:50:07Z","updated_at":"2016-02-12T20:50:07Z","html_url":"https://github.com/TotalFreedom/TotalFreedomMod/pull/1493#discussion_r52796569","pull_request_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/1493","_links":{"self":{"href":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/comments/52796569"},"html":{"href":"https://github.com/TotalFreedom/TotalFreedomMod/pull/1493#discussion_r52796569"},"pull_request":{"href":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/1493"}}},"pull_request":{"url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/1493","id":59227375,"html_url":"https://github.com/TotalFreedom/TotalFreedomMod/pull/1493","diff_url":"https://github.com/TotalFreedom/TotalFreedomMod/pull/1493.diff","patch_url":"https://github.com/TotalFreedom/TotalFreedomMod/pull/1493.patch","issue_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/1493","number":1493,"state":"open","locked":false,"title":"Resolves #226","user":{"login":"LegendIsAwesomes","id":10475795,"avatar_url":"https://avatars.githubusercontent.com/u/10475795?v=3","gravatar_id":"","url":"https://api.github.com/users/LegendIsAwesomes","html_url":"https://github.com/LegendIsAwesomes","followers_url":"https://api.github.com/users/LegendIsAwesomes/followers","following_url":"https://api.github.com/users/LegendIsAwesomes/following{/other_user}","gists_url":"https://api.github.com/users/LegendIsAwesomes/gists{/gist_id}","starred_url":"https://api.github.com/users/LegendIsAwesomes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LegendIsAwesomes/subscriptions","organizations_url":"https://api.github.com/users/LegendIsAwesomes/orgs","repos_url":"https://api.github.com/users/LegendIsAwesomes/repos","events_url":"https://api.github.com/users/LegendIsAwesomes/events{/privacy}","received_events_url":"https://api.github.com/users/LegendIsAwesomes/received_events","type":"User","site_admin":false},"body":"Resolves https://github.com/TotalFreedom/TotalFreedomMod/issues/266","created_at":"2016-02-12T20:34:54Z","updated_at":"2016-02-12T20:50:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8f1af698a13ede6f308a3433229bed1798e8b3b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/1493/commits","review_comments_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/1493/comments","review_comment_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/1493/comments","statuses_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/statuses/03cb0cd866c4dddfcab1ff91bc17c1c471f4637f","head":{"label":"LegendIsAwesomes:patch-7","ref":"patch-7","sha":"03cb0cd866c4dddfcab1ff91bc17c1c471f4637f","user":{"login":"LegendIsAwesomes","id":10475795,"avatar_url":"https://avatars.githubusercontent.com/u/10475795?v=3","gravatar_id":"","url":"https://api.github.com/users/LegendIsAwesomes","html_url":"https://github.com/LegendIsAwesomes","followers_url":"https://api.github.com/users/LegendIsAwesomes/followers","following_url":"https://api.github.com/users/LegendIsAwesomes/following{/other_user}","gists_url":"https://api.github.com/users/LegendIsAwesomes/gists{/gist_id}","starred_url":"https://api.github.com/users/LegendIsAwesomes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LegendIsAwesomes/subscriptions","organizations_url":"https://api.github.com/users/LegendIsAwesomes/orgs","repos_url":"https://api.github.com/users/LegendIsAwesomes/repos","events_url":"https://api.github.com/users/LegendIsAwesomes/events{/privacy}","received_events_url":"https://api.github.com/users/LegendIsAwesomes/received_events","type":"User","site_admin":false},"repo":{"id":48591658,"name":"TotalFreedomMod","full_name":"LegendIsAwesomes/TotalFreedomMod","owner":{"login":"LegendIsAwesomes","id":10475795,"avatar_url":"https://avatars.githubusercontent.com/u/10475795?v=3","gravatar_id":"","url":"https://api.github.com/users/LegendIsAwesomes","html_url":"https://github.com/LegendIsAwesomes","followers_url":"https://api.github.com/users/LegendIsAwesomes/followers","following_url":"https://api.github.com/users/LegendIsAwesomes/following{/other_user}","gists_url":"https://api.github.com/users/LegendIsAwesomes/gists{/gist_id}","starred_url":"https://api.github.com/users/LegendIsAwesomes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LegendIsAwesomes/subscriptions","organizations_url":"https://api.github.com/users/LegendIsAwesomes/orgs","repos_url":"https://api.github.com/users/LegendIsAwesomes/repos","events_url":"https://api.github.com/users/LegendIsAwesomes/events{/privacy}","received_events_url":"https://api.github.com/users/LegendIsAwesomes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LegendIsAwesomes/TotalFreedomMod","description":"A server modification for the TotalFreedom server","fork":true,"url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod","forks_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/forks","keys_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/teams","hooks_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/hooks","issue_events_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/issues/events{/number}","events_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/events","assignees_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/assignees{/user}","branches_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/branches{/branch}","tags_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/tags","blobs_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/git/refs{/sha}","trees_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/statuses/{sha}","languages_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/languages","stargazers_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/stargazers","contributors_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/contributors","subscribers_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/subscribers","subscription_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/subscription","commits_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/commits{/sha}","git_commits_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/git/commits{/sha}","comments_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/comments{/number}","issue_comment_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/issues/comments{/number}","contents_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/contents/{+path}","compare_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/merges","archive_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/downloads","issues_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/issues{/number}","pulls_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/pulls{/number}","milestones_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/milestones{/number}","notifications_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/labels{/name}","releases_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/releases{/id}","deployments_url":"https://api.github.com/repos/LegendIsAwesomes/TotalFreedomMod/deployments","created_at":"2015-12-25T21:22:19Z","updated_at":"2015-12-25T21:22:20Z","pushed_at":"2016-02-12T20:34:23Z","git_url":"git://github.com/LegendIsAwesomes/TotalFreedomMod.git","ssh_url":"git@github.com:LegendIsAwesomes/TotalFreedomMod.git","clone_url":"https://github.com/LegendIsAwesomes/TotalFreedomMod.git","svn_url":"https://github.com/LegendIsAwesomes/TotalFreedomMod","homepage":"http://totalfreedom.me/","size":3107,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"TotalFreedom:master","ref":"master","sha":"5ea03054c256db3dd1bbc9aa2b55bea0a805371c","user":{"login":"TotalFreedom","id":3914775,"avatar_url":"https://avatars.githubusercontent.com/u/3914775?v=3","gravatar_id":"","url":"https://api.github.com/users/TotalFreedom","html_url":"https://github.com/TotalFreedom","followers_url":"https://api.github.com/users/TotalFreedom/followers","following_url":"https://api.github.com/users/TotalFreedom/following{/other_user}","gists_url":"https://api.github.com/users/TotalFreedom/gists{/gist_id}","starred_url":"https://api.github.com/users/TotalFreedom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TotalFreedom/subscriptions","organizations_url":"https://api.github.com/users/TotalFreedom/orgs","repos_url":"https://api.github.com/users/TotalFreedom/repos","events_url":"https://api.github.com/users/TotalFreedom/events{/privacy}","received_events_url":"https://api.github.com/users/TotalFreedom/received_events","type":"Organization","site_admin":false},"repo":{"id":8891184,"name":"TotalFreedomMod","full_name":"TotalFreedom/TotalFreedomMod","owner":{"login":"TotalFreedom","id":3914775,"avatar_url":"https://avatars.githubusercontent.com/u/3914775?v=3","gravatar_id":"","url":"https://api.github.com/users/TotalFreedom","html_url":"https://github.com/TotalFreedom","followers_url":"https://api.github.com/users/TotalFreedom/followers","following_url":"https://api.github.com/users/TotalFreedom/following{/other_user}","gists_url":"https://api.github.com/users/TotalFreedom/gists{/gist_id}","starred_url":"https://api.github.com/users/TotalFreedom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TotalFreedom/subscriptions","organizations_url":"https://api.github.com/users/TotalFreedom/orgs","repos_url":"https://api.github.com/users/TotalFreedom/repos","events_url":"https://api.github.com/users/TotalFreedom/events{/privacy}","received_events_url":"https://api.github.com/users/TotalFreedom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TotalFreedom/TotalFreedomMod","description":"A server modification for the TotalFreedom server","fork":false,"url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod","forks_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/forks","keys_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/teams","hooks_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/hooks","issue_events_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/events{/number}","events_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/events","assignees_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/assignees{/user}","branches_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/branches{/branch}","tags_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/tags","blobs_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/git/refs{/sha}","trees_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/statuses/{sha}","languages_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/languages","stargazers_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/stargazers","contributors_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/contributors","subscribers_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/subscribers","subscription_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/subscription","commits_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/commits{/sha}","git_commits_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/git/commits{/sha}","comments_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/comments{/number}","issue_comment_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/comments{/number}","contents_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/contents/{+path}","compare_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/merges","archive_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/downloads","issues_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues{/number}","pulls_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls{/number}","milestones_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/milestones{/number}","notifications_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/labels{/name}","releases_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/releases{/id}","deployments_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/deployments","created_at":"2013-03-19T22:42:36Z","updated_at":"2016-02-09T22:19:05Z","pushed_at":"2016-02-12T20:34:54Z","git_url":"git://github.com/TotalFreedom/TotalFreedomMod.git","ssh_url":"git@github.com:TotalFreedom/TotalFreedomMod.git","clone_url":"https://github.com/TotalFreedom/TotalFreedomMod.git","svn_url":"https://github.com/TotalFreedom/TotalFreedomMod","homepage":"http://totalfreedom.me/","size":4650,"stargazers_count":33,"watchers_count":33,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":171,"mirror_url":null,"open_issues_count":242,"forks":171,"open_issues":242,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/1493"},"html":{"href":"https://github.com/TotalFreedom/TotalFreedomMod/pull/1493"},"issue":{"href":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/1493"},"comments":{"href":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/1493/comments"},"review_comments":{"href":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/1493/comments"},"review_comment":{"href":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/pulls/1493/commits"},"statuses":{"href":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/statuses/03cb0cd866c4dddfcab1ff91bc17c1c471f4637f"}}}}