{"action":"created","comment":{"url":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/comments/67416898","id":67416898,"diff_hunk":"@@ -50,7 +51,11 @@ public void playerDoneDied(PlayerDeathEvent event) {\n \n     @EventHandler\n     public void playerTeleportedSomeWhere(PlayerTeleportEvent event) {\n-        toggleTrailerTrailingPlayer(event.getPlayer());\n+        TeleportCause cause = event.getCause();\n+\n+        if (cause.equals(TeleportCause.END_PORTAL) || cause.equals(TeleportCause.NETHER_PORTAL)) {","path":"src/main/java/com/graywolf336/trailingperspective/listeners/TrailingPerspectivePlayerListener.java","position":15,"original_position":15,"commit_id":"b59b882420fb14e3c1cc99c5338902c780b22c08","original_commit_id":"b59b882420fb14e3c1cc99c5338902c780b22c08","user":{"login":"graywolf336","id":850391,"avatar_url":"https://avatars.githubusercontent.com/u/850391?v=3","gravatar_id":"","url":"https://api.github.com/users/graywolf336","html_url":"https://github.com/graywolf336","followers_url":"https://api.github.com/users/graywolf336/followers","following_url":"https://api.github.com/users/graywolf336/following{/other_user}","gists_url":"https://api.github.com/users/graywolf336/gists{/gist_id}","starred_url":"https://api.github.com/users/graywolf336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graywolf336/subscriptions","organizations_url":"https://api.github.com/users/graywolf336/orgs","repos_url":"https://api.github.com/users/graywolf336/repos","events_url":"https://api.github.com/users/graywolf336/events{/privacy}","received_events_url":"https://api.github.com/users/graywolf336/received_events","type":"User","site_admin":false},"body":"Maybe change the `.equals` to `==`? Here's my reasoning, along with the fact this is how I usually do it: http://stackoverflow.com/a/1750453","created_at":"2016-06-16T20:21:05Z","updated_at":"2016-06-16T20:21:05Z","html_url":"https://github.com/graywolf336/TrailingPerspective/pull/16#discussion_r67416898","pull_request_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/comments/67416898"},"html":{"href":"https://github.com/graywolf336/TrailingPerspective/pull/16#discussion_r67416898"},"pull_request":{"href":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/16","id":74141118,"html_url":"https://github.com/graywolf336/TrailingPerspective/pull/16","diff_url":"https://github.com/graywolf336/TrailingPerspective/pull/16.diff","patch_url":"https://github.com/graywolf336/TrailingPerspective/pull/16.patch","issue_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/issues/16","number":16,"state":"open","locked":false,"title":"Targetted specific teleport events","user":{"login":"dawgeth","id":7233525,"avatar_url":"https://avatars.githubusercontent.com/u/7233525?v=3","gravatar_id":"","url":"https://api.github.com/users/dawgeth","html_url":"https://github.com/dawgeth","followers_url":"https://api.github.com/users/dawgeth/followers","following_url":"https://api.github.com/users/dawgeth/following{/other_user}","gists_url":"https://api.github.com/users/dawgeth/gists{/gist_id}","starred_url":"https://api.github.com/users/dawgeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawgeth/subscriptions","organizations_url":"https://api.github.com/users/dawgeth/orgs","repos_url":"https://api.github.com/users/dawgeth/repos","events_url":"https://api.github.com/users/dawgeth/events{/privacy}","received_events_url":"https://api.github.com/users/dawgeth/received_events","type":"User","site_admin":false},"body":"Targetted specific teleport events","created_at":"2016-06-16T19:51:12Z","updated_at":"2016-06-16T20:21:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6008effd4bd1f8be4fc14c0455e48b9599f19acd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/16/commits","review_comments_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/16/comments","review_comment_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/issues/16/comments","statuses_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/statuses/b59b882420fb14e3c1cc99c5338902c780b22c08","head":{"label":"graywolf336:portal-teleport-fix","ref":"portal-teleport-fix","sha":"b59b882420fb14e3c1cc99c5338902c780b22c08","user":{"login":"graywolf336","id":850391,"avatar_url":"https://avatars.githubusercontent.com/u/850391?v=3","gravatar_id":"","url":"https://api.github.com/users/graywolf336","html_url":"https://github.com/graywolf336","followers_url":"https://api.github.com/users/graywolf336/followers","following_url":"https://api.github.com/users/graywolf336/following{/other_user}","gists_url":"https://api.github.com/users/graywolf336/gists{/gist_id}","starred_url":"https://api.github.com/users/graywolf336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graywolf336/subscriptions","organizations_url":"https://api.github.com/users/graywolf336/orgs","repos_url":"https://api.github.com/users/graywolf336/repos","events_url":"https://api.github.com/users/graywolf336/events{/privacy}","received_events_url":"https://api.github.com/users/graywolf336/received_events","type":"User","site_admin":false},"repo":{"id":60938952,"name":"TrailingPerspective","full_name":"graywolf336/TrailingPerspective","owner":{"login":"graywolf336","id":850391,"avatar_url":"https://avatars.githubusercontent.com/u/850391?v=3","gravatar_id":"","url":"https://api.github.com/users/graywolf336","html_url":"https://github.com/graywolf336","followers_url":"https://api.github.com/users/graywolf336/followers","following_url":"https://api.github.com/users/graywolf336/following{/other_user}","gists_url":"https://api.github.com/users/graywolf336/gists{/gist_id}","starred_url":"https://api.github.com/users/graywolf336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graywolf336/subscriptions","organizations_url":"https://api.github.com/users/graywolf336/orgs","repos_url":"https://api.github.com/users/graywolf336/repos","events_url":"https://api.github.com/users/graywolf336/events{/privacy}","received_events_url":"https://api.github.com/users/graywolf336/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/graywolf336/TrailingPerspective","description":"A Bukkit plugin for trailing someone's perspective.","fork":false,"url":"https://api.github.com/repos/graywolf336/TrailingPerspective","forks_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/forks","keys_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/teams","hooks_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/hooks","issue_events_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/issues/events{/number}","events_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/events","assignees_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/assignees{/user}","branches_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/branches{/branch}","tags_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/tags","blobs_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/git/refs{/sha}","trees_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/statuses/{sha}","languages_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/languages","stargazers_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/stargazers","contributors_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/contributors","subscribers_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/subscribers","subscription_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/subscription","commits_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/commits{/sha}","git_commits_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/git/commits{/sha}","comments_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/comments{/number}","issue_comment_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/issues/comments{/number}","contents_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/contents/{+path}","compare_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/merges","archive_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/downloads","issues_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/issues{/number}","pulls_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls{/number}","milestones_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/milestones{/number}","notifications_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/labels{/name}","releases_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/releases{/id}","deployments_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/deployments","created_at":"2016-06-12T02:59:02Z","updated_at":"2016-06-12T03:03:17Z","pushed_at":"2016-06-16T20:18:31Z","git_url":"git://github.com/graywolf336/TrailingPerspective.git","ssh_url":"git@github.com:graywolf336/TrailingPerspective.git","clone_url":"https://github.com/graywolf336/TrailingPerspective.git","svn_url":"https://github.com/graywolf336/TrailingPerspective","homepage":null,"size":122,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"graywolf336:master","ref":"master","sha":"9cb23a71025b7e196d14d667124d83d3cdca688a","user":{"login":"graywolf336","id":850391,"avatar_url":"https://avatars.githubusercontent.com/u/850391?v=3","gravatar_id":"","url":"https://api.github.com/users/graywolf336","html_url":"https://github.com/graywolf336","followers_url":"https://api.github.com/users/graywolf336/followers","following_url":"https://api.github.com/users/graywolf336/following{/other_user}","gists_url":"https://api.github.com/users/graywolf336/gists{/gist_id}","starred_url":"https://api.github.com/users/graywolf336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graywolf336/subscriptions","organizations_url":"https://api.github.com/users/graywolf336/orgs","repos_url":"https://api.github.com/users/graywolf336/repos","events_url":"https://api.github.com/users/graywolf336/events{/privacy}","received_events_url":"https://api.github.com/users/graywolf336/received_events","type":"User","site_admin":false},"repo":{"id":60938952,"name":"TrailingPerspective","full_name":"graywolf336/TrailingPerspective","owner":{"login":"graywolf336","id":850391,"avatar_url":"https://avatars.githubusercontent.com/u/850391?v=3","gravatar_id":"","url":"https://api.github.com/users/graywolf336","html_url":"https://github.com/graywolf336","followers_url":"https://api.github.com/users/graywolf336/followers","following_url":"https://api.github.com/users/graywolf336/following{/other_user}","gists_url":"https://api.github.com/users/graywolf336/gists{/gist_id}","starred_url":"https://api.github.com/users/graywolf336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graywolf336/subscriptions","organizations_url":"https://api.github.com/users/graywolf336/orgs","repos_url":"https://api.github.com/users/graywolf336/repos","events_url":"https://api.github.com/users/graywolf336/events{/privacy}","received_events_url":"https://api.github.com/users/graywolf336/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/graywolf336/TrailingPerspective","description":"A Bukkit plugin for trailing someone's perspective.","fork":false,"url":"https://api.github.com/repos/graywolf336/TrailingPerspective","forks_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/forks","keys_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/teams","hooks_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/hooks","issue_events_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/issues/events{/number}","events_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/events","assignees_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/assignees{/user}","branches_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/branches{/branch}","tags_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/tags","blobs_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/git/refs{/sha}","trees_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/statuses/{sha}","languages_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/languages","stargazers_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/stargazers","contributors_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/contributors","subscribers_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/subscribers","subscription_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/subscription","commits_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/commits{/sha}","git_commits_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/git/commits{/sha}","comments_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/comments{/number}","issue_comment_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/issues/comments{/number}","contents_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/contents/{+path}","compare_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/merges","archive_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/downloads","issues_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/issues{/number}","pulls_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls{/number}","milestones_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/milestones{/number}","notifications_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/labels{/name}","releases_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/releases{/id}","deployments_url":"https://api.github.com/repos/graywolf336/TrailingPerspective/deployments","created_at":"2016-06-12T02:59:02Z","updated_at":"2016-06-12T03:03:17Z","pushed_at":"2016-06-16T20:18:31Z","git_url":"git://github.com/graywolf336/TrailingPerspective.git","ssh_url":"git@github.com:graywolf336/TrailingPerspective.git","clone_url":"https://github.com/graywolf336/TrailingPerspective.git","svn_url":"https://github.com/graywolf336/TrailingPerspective","homepage":null,"size":122,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/16"},"html":{"href":"https://github.com/graywolf336/TrailingPerspective/pull/16"},"issue":{"href":"https://api.github.com/repos/graywolf336/TrailingPerspective/issues/16"},"comments":{"href":"https://api.github.com/repos/graywolf336/TrailingPerspective/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graywolf336/TrailingPerspective/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/graywolf336/TrailingPerspective/statuses/b59b882420fb14e3c1cc99c5338902c780b22c08"}}}}
{"actor":{"display_login":"graywolf336"}}