{"action":"opened","number":293,"pull_request":{"url":"https://api.github.com/repos/SpongePowered/SpongeCommon/pulls/293","id":52014732,"html_url":"https://github.com/SpongePowered/SpongeCommon/pull/293","diff_url":"https://github.com/SpongePowered/SpongeCommon/pull/293.diff","patch_url":"https://github.com/SpongePowered/SpongeCommon/pull/293.patch","issue_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/293","number":293,"state":"open","locked":false,"title":"Improve velocity behavior.","user":{"login":"JBYoshi","id":12983479,"avatar_url":"https://avatars.githubusercontent.com/u/12983479?v=3","gravatar_id":"","url":"https://api.github.com/users/JBYoshi","html_url":"https://github.com/JBYoshi","followers_url":"https://api.github.com/users/JBYoshi/followers","following_url":"https://api.github.com/users/JBYoshi/following{/other_user}","gists_url":"https://api.github.com/users/JBYoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/JBYoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JBYoshi/subscriptions","organizations_url":"https://api.github.com/users/JBYoshi/orgs","repos_url":"https://api.github.com/users/JBYoshi/repos","events_url":"https://api.github.com/users/JBYoshi/events{/privacy}","received_events_url":"https://api.github.com/users/JBYoshi/received_events","type":"User","site_admin":false},"body":"No longer requires magic values. Tested and works properly.\r\n\r\nSee the discussion in #149.\r\n\r\nCode:\r\n```java\r\npackage jbyoshi.sponge.test;\r\n\r\nimport org.slf4j.Logger;\r\nimport org.spongepowered.api.data.key.Keys;\r\nimport org.spongepowered.api.event.Listener;\r\nimport org.spongepowered.api.event.entity.DisplaceEntityEvent;\r\nimport org.spongepowered.api.plugin.Plugin;\r\nimport org.spongepowered.api.service.scheduler.Task;\r\n\r\nimport javax.inject.Inject;\r\n\r\n@Plugin(id = \"jbyoshi.sponge.test\", name=\"JBYoshi Sponge Test\")\r\npublic final class SpongeTestPlugin {\r\n    \r\n    @Inject private Logger logger;\r\n    \r\n    @Listener\r\n    public void playerMoved(DisplaceEntityEvent.TargetPlayer event) {\r\n        this.logger.info(event.getToTransform().getPosition().sub(event.getFromTransform().getPosition()).toString());\r\n        event.getGame().getScheduler().createTaskBuilder().execute(() -> {\r\n            this.logger.info(\"-> \" + event.getTargetEntity().get(Keys.VELOCITY).get());\r\n        }).submit(this);\r\n    }\r\n}\r\n```","created_at":"2015-11-27T17:25:31Z","updated_at":"2015-11-27T17:25:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20025d048a95e495916c990e18fa44dda2b110aa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/pulls/293/commits","review_comments_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/pulls/293/comments","review_comment_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/293/comments","statuses_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/statuses/459c23dc10611e23a465d732fc0ab71871d0718f","head":{"label":"JBYoshi:fix/velocity","ref":"fix/velocity","sha":"459c23dc10611e23a465d732fc0ab71871d0718f","user":{"login":"JBYoshi","id":12983479,"avatar_url":"https://avatars.githubusercontent.com/u/12983479?v=3","gravatar_id":"","url":"https://api.github.com/users/JBYoshi","html_url":"https://github.com/JBYoshi","followers_url":"https://api.github.com/users/JBYoshi/followers","following_url":"https://api.github.com/users/JBYoshi/following{/other_user}","gists_url":"https://api.github.com/users/JBYoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/JBYoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JBYoshi/subscriptions","organizations_url":"https://api.github.com/users/JBYoshi/orgs","repos_url":"https://api.github.com/users/JBYoshi/repos","events_url":"https://api.github.com/users/JBYoshi/events{/privacy}","received_events_url":"https://api.github.com/users/JBYoshi/received_events","type":"User","site_admin":false},"repo":{"id":37821950,"name":"SpongeCommon","full_name":"JBYoshi/SpongeCommon","owner":{"login":"JBYoshi","id":12983479,"avatar_url":"https://avatars.githubusercontent.com/u/12983479?v=3","gravatar_id":"","url":"https://api.github.com/users/JBYoshi","html_url":"https://github.com/JBYoshi","followers_url":"https://api.github.com/users/JBYoshi/followers","following_url":"https://api.github.com/users/JBYoshi/following{/other_user}","gists_url":"https://api.github.com/users/JBYoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/JBYoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JBYoshi/subscriptions","organizations_url":"https://api.github.com/users/JBYoshi/orgs","repos_url":"https://api.github.com/users/JBYoshi/repos","events_url":"https://api.github.com/users/JBYoshi/events{/privacy}","received_events_url":"https://api.github.com/users/JBYoshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JBYoshi/SpongeCommon","description":"Shared code between SpongeForge and SpongeVanilla","fork":true,"url":"https://api.github.com/repos/JBYoshi/SpongeCommon","forks_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/forks","keys_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/teams","hooks_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/hooks","issue_events_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/issues/events{/number}","events_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/events","assignees_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/assignees{/user}","branches_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/branches{/branch}","tags_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/tags","blobs_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/git/refs{/sha}","trees_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/statuses/{sha}","languages_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/languages","stargazers_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/stargazers","contributors_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/contributors","subscribers_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/subscribers","subscription_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/subscription","commits_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/commits{/sha}","git_commits_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/git/commits{/sha}","comments_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/comments{/number}","issue_comment_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/issues/comments{/number}","contents_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/contents/{+path}","compare_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/merges","archive_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/downloads","issues_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/issues{/number}","pulls_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/pulls{/number}","milestones_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/milestones{/number}","notifications_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/labels{/name}","releases_url":"https://api.github.com/repos/JBYoshi/SpongeCommon/releases{/id}","created_at":"2015-06-21T19:08:45Z","updated_at":"2015-09-06T18:41:14Z","pushed_at":"2015-11-27T17:21:46Z","git_url":"git://github.com/JBYoshi/SpongeCommon.git","ssh_url":"git@github.com:JBYoshi/SpongeCommon.git","clone_url":"https://github.com/JBYoshi/SpongeCommon.git","svn_url":"https://github.com/JBYoshi/SpongeCommon","homepage":"","size":5331,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"SpongePowered:master","ref":"master","sha":"9a772dae0091fa21872537367f02a256fb2de561","user":{"login":"SpongePowered","id":8683473,"avatar_url":"https://avatars.githubusercontent.com/u/8683473?v=3","gravatar_id":"","url":"https://api.github.com/users/SpongePowered","html_url":"https://github.com/SpongePowered","followers_url":"https://api.github.com/users/SpongePowered/followers","following_url":"https://api.github.com/users/SpongePowered/following{/other_user}","gists_url":"https://api.github.com/users/SpongePowered/gists{/gist_id}","starred_url":"https://api.github.com/users/SpongePowered/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpongePowered/subscriptions","organizations_url":"https://api.github.com/users/SpongePowered/orgs","repos_url":"https://api.github.com/users/SpongePowered/repos","events_url":"https://api.github.com/users/SpongePowered/events{/privacy}","received_events_url":"https://api.github.com/users/SpongePowered/received_events","type":"Organization","site_admin":false},"repo":{"id":33791453,"name":"SpongeCommon","full_name":"SpongePowered/SpongeCommon","owner":{"login":"SpongePowered","id":8683473,"avatar_url":"https://avatars.githubusercontent.com/u/8683473?v=3","gravatar_id":"","url":"https://api.github.com/users/SpongePowered","html_url":"https://github.com/SpongePowered","followers_url":"https://api.github.com/users/SpongePowered/followers","following_url":"https://api.github.com/users/SpongePowered/following{/other_user}","gists_url":"https://api.github.com/users/SpongePowered/gists{/gist_id}","starred_url":"https://api.github.com/users/SpongePowered/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpongePowered/subscriptions","organizations_url":"https://api.github.com/users/SpongePowered/orgs","repos_url":"https://api.github.com/users/SpongePowered/repos","events_url":"https://api.github.com/users/SpongePowered/events{/privacy}","received_events_url":"https://api.github.com/users/SpongePowered/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SpongePowered/SpongeCommon","description":"Shared code between SpongeForge and SpongeVanilla","fork":false,"url":"https://api.github.com/repos/SpongePowered/SpongeCommon","forks_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/forks","keys_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/teams","hooks_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/hooks","issue_events_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/events{/number}","events_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/events","assignees_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/assignees{/user}","branches_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/branches{/branch}","tags_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/tags","blobs_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/statuses/{sha}","languages_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/languages","stargazers_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/stargazers","contributors_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/contributors","subscribers_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/subscribers","subscription_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/subscription","commits_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/contents/{+path}","compare_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/merges","archive_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/downloads","issues_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues{/number}","pulls_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/pulls{/number}","milestones_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/milestones{/number}","notifications_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/labels{/name}","releases_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/releases{/id}","created_at":"2015-04-11T20:38:48Z","updated_at":"2015-11-25T17:31:59Z","pushed_at":"2015-11-27T17:25:31Z","git_url":"git://github.com/SpongePowered/SpongeCommon.git","ssh_url":"git@github.com:SpongePowered/SpongeCommon.git","clone_url":"https://github.com/SpongePowered/SpongeCommon.git","svn_url":"https://github.com/SpongePowered/SpongeCommon","homepage":"","size":9093,"stargazers_count":53,"watchers_count":53,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":54,"forks":58,"open_issues":54,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SpongePowered/SpongeCommon/pulls/293"},"html":{"href":"https://github.com/SpongePowered/SpongeCommon/pull/293"},"issue":{"href":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/293"},"comments":{"href":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/293/comments"},"review_comments":{"href":"https://api.github.com/repos/SpongePowered/SpongeCommon/pulls/293/comments"},"review_comment":{"href":"https://api.github.com/repos/SpongePowered/SpongeCommon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SpongePowered/SpongeCommon/pulls/293/commits"},"statuses":{"href":"https://api.github.com/repos/SpongePowered/SpongeCommon/statuses/459c23dc10611e23a465d732fc0ab71871d0718f"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":59,"deletions":21,"changed_files":7}}