{"action":"created","comment":{"url":"https://api.github.com/repos/cuberite/Core/pulls/comments/74709677","id":74709677,"diff_hunk":"@@ -1,66 +1,70 @@\n+local Str = {\n+\tSpawnBeingSend = \"You are sent back to %s's spawn\",\n+\tSpawnSentOther = \"You sent %s back to %s's spawn\",\n+\tPlayerNotFound = \"Player %s not found!\",\n+\tPermissionMissingSpecific = \"You need %s permission to do that!\",\n+\tSpawnReached = \"Returned to %s's spawn\",\n+\tSpawnSet = \"Changed spawn position of %s to [X:%i Y:%i Z:%i]\",\n+\tSpawnSetFailure = \"Couldn't change spawn position of %s to [X:%i Y:%i Z:%i]\"\n+}\n+\n+local function SendToWorldSpawn( Player, Callback )\n+\n+\tlocal World = Player:GetWorld()\n+\tlocal Chunks = {}\n+\ttable.insert( Chunks, { math.floor(World:GetSpawnX() / 16), math.floor(World:GetSpawnZ() / 16) } )\n+\tlocal OnAllChunksAvailable = function()\n+\t\tPlayer:TeleportToCoords(World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ())","path":"spawn.lua","position":17,"original_position":17,"commit_id":"c101b2c3aec1f6f6b243ef79e015a227a2bcd961","original_commit_id":"c101b2c3aec1f6f6b243ef79e015a227a2bcd961","user":{"login":"madmaxoft","id":4388386,"avatar_url":"https://avatars.githubusercontent.com/u/4388386?v=3","gravatar_id":"","url":"https://api.github.com/users/madmaxoft","html_url":"https://github.com/madmaxoft","followers_url":"https://api.github.com/users/madmaxoft/followers","following_url":"https://api.github.com/users/madmaxoft/following{/other_user}","gists_url":"https://api.github.com/users/madmaxoft/gists{/gist_id}","starred_url":"https://api.github.com/users/madmaxoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmaxoft/subscriptions","organizations_url":"https://api.github.com/users/madmaxoft/orgs","repos_url":"https://api.github.com/users/madmaxoft/repos","events_url":"https://api.github.com/users/madmaxoft/events{/privacy}","received_events_url":"https://api.github.com/users/madmaxoft/received_events","type":"User","site_admin":false},"body":"Can't use `Player` in the ChunkStay callback, the object could have been deleted in the meantime (player disconnect etc.).\r\n\r\nYou need to store the player's name or uuid and re-query the object from the world again with `cWorld:DoWithPlayerBy...`","created_at":"2016-08-14T22:21:11Z","updated_at":"2016-08-14T22:21:11Z","html_url":"https://github.com/cuberite/Core/pull/172#discussion_r74709677","pull_request_url":"https://api.github.com/repos/cuberite/Core/pulls/172","_links":{"self":{"href":"https://api.github.com/repos/cuberite/Core/pulls/comments/74709677"},"html":{"href":"https://github.com/cuberite/Core/pull/172#discussion_r74709677"},"pull_request":{"href":"https://api.github.com/repos/cuberite/Core/pulls/172"}}},"pull_request":{"url":"https://api.github.com/repos/cuberite/Core/pulls/172","id":81230619,"html_url":"https://github.com/cuberite/Core/pull/172","diff_url":"https://github.com/cuberite/Core/pull/172.diff","patch_url":"https://github.com/cuberite/Core/pull/172.patch","issue_url":"https://api.github.com/repos/cuberite/Core/issues/172","number":172,"state":"open","locked":false,"title":"No more Inifile in /spawn command. Use World:SetSpawn","user":{"login":"ElNounch","id":7682399,"avatar_url":"https://avatars.githubusercontent.com/u/7682399?v=3","gravatar_id":"","url":"https://api.github.com/users/ElNounch","html_url":"https://github.com/ElNounch","followers_url":"https://api.github.com/users/ElNounch/followers","following_url":"https://api.github.com/users/ElNounch/following{/other_user}","gists_url":"https://api.github.com/users/ElNounch/gists{/gist_id}","starred_url":"https://api.github.com/users/ElNounch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElNounch/subscriptions","organizations_url":"https://api.github.com/users/ElNounch/orgs","repos_url":"https://api.github.com/users/ElNounch/repos","events_url":"https://api.github.com/users/ElNounch/events{/privacy}","received_events_url":"https://api.github.com/users/ElNounch/received_events","type":"User","site_admin":false},"body":"No longer use Inifile itself, rely on high-level APIs\r\nChunkStay not needed anymore when teleporting\r\n\r\nDepends on https://github.com/cuberite/cuberite/pull/3316\r\n","created_at":"2016-08-14T00:35:41Z","updated_at":"2016-08-14T22:21:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2920556c57bb1b7126b83964a9992d6f2f74f364","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cuberite/Core/pulls/172/commits","review_comments_url":"https://api.github.com/repos/cuberite/Core/pulls/172/comments","review_comment_url":"https://api.github.com/repos/cuberite/Core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cuberite/Core/issues/172/comments","statuses_url":"https://api.github.com/repos/cuberite/Core/statuses/c101b2c3aec1f6f6b243ef79e015a227a2bcd961","head":{"label":"ElNounch:DirectTP","ref":"DirectTP","sha":"c101b2c3aec1f6f6b243ef79e015a227a2bcd961","user":{"login":"ElNounch","id":7682399,"avatar_url":"https://avatars.githubusercontent.com/u/7682399?v=3","gravatar_id":"","url":"https://api.github.com/users/ElNounch","html_url":"https://github.com/ElNounch","followers_url":"https://api.github.com/users/ElNounch/followers","following_url":"https://api.github.com/users/ElNounch/following{/other_user}","gists_url":"https://api.github.com/users/ElNounch/gists{/gist_id}","starred_url":"https://api.github.com/users/ElNounch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElNounch/subscriptions","organizations_url":"https://api.github.com/users/ElNounch/orgs","repos_url":"https://api.github.com/users/ElNounch/repos","events_url":"https://api.github.com/users/ElNounch/events{/privacy}","received_events_url":"https://api.github.com/users/ElNounch/received_events","type":"User","site_admin":false},"repo":{"id":65582723,"name":"Core","full_name":"ElNounch/Core","owner":{"login":"ElNounch","id":7682399,"avatar_url":"https://avatars.githubusercontent.com/u/7682399?v=3","gravatar_id":"","url":"https://api.github.com/users/ElNounch","html_url":"https://github.com/ElNounch","followers_url":"https://api.github.com/users/ElNounch/followers","following_url":"https://api.github.com/users/ElNounch/following{/other_user}","gists_url":"https://api.github.com/users/ElNounch/gists{/gist_id}","starred_url":"https://api.github.com/users/ElNounch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElNounch/subscriptions","organizations_url":"https://api.github.com/users/ElNounch/orgs","repos_url":"https://api.github.com/users/ElNounch/repos","events_url":"https://api.github.com/users/ElNounch/events{/privacy}","received_events_url":"https://api.github.com/users/ElNounch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ElNounch/Core","description":"The Core Plugin for Cuberite","fork":true,"url":"https://api.github.com/repos/ElNounch/Core","forks_url":"https://api.github.com/repos/ElNounch/Core/forks","keys_url":"https://api.github.com/repos/ElNounch/Core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ElNounch/Core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ElNounch/Core/teams","hooks_url":"https://api.github.com/repos/ElNounch/Core/hooks","issue_events_url":"https://api.github.com/repos/ElNounch/Core/issues/events{/number}","events_url":"https://api.github.com/repos/ElNounch/Core/events","assignees_url":"https://api.github.com/repos/ElNounch/Core/assignees{/user}","branches_url":"https://api.github.com/repos/ElNounch/Core/branches{/branch}","tags_url":"https://api.github.com/repos/ElNounch/Core/tags","blobs_url":"https://api.github.com/repos/ElNounch/Core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ElNounch/Core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ElNounch/Core/git/refs{/sha}","trees_url":"https://api.github.com/repos/ElNounch/Core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ElNounch/Core/statuses/{sha}","languages_url":"https://api.github.com/repos/ElNounch/Core/languages","stargazers_url":"https://api.github.com/repos/ElNounch/Core/stargazers","contributors_url":"https://api.github.com/repos/ElNounch/Core/contributors","subscribers_url":"https://api.github.com/repos/ElNounch/Core/subscribers","subscription_url":"https://api.github.com/repos/ElNounch/Core/subscription","commits_url":"https://api.github.com/repos/ElNounch/Core/commits{/sha}","git_commits_url":"https://api.github.com/repos/ElNounch/Core/git/commits{/sha}","comments_url":"https://api.github.com/repos/ElNounch/Core/comments{/number}","issue_comment_url":"https://api.github.com/repos/ElNounch/Core/issues/comments{/number}","contents_url":"https://api.github.com/repos/ElNounch/Core/contents/{+path}","compare_url":"https://api.github.com/repos/ElNounch/Core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ElNounch/Core/merges","archive_url":"https://api.github.com/repos/ElNounch/Core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ElNounch/Core/downloads","issues_url":"https://api.github.com/repos/ElNounch/Core/issues{/number}","pulls_url":"https://api.github.com/repos/ElNounch/Core/pulls{/number}","milestones_url":"https://api.github.com/repos/ElNounch/Core/milestones{/number}","notifications_url":"https://api.github.com/repos/ElNounch/Core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ElNounch/Core/labels{/name}","releases_url":"https://api.github.com/repos/ElNounch/Core/releases{/id}","deployments_url":"https://api.github.com/repos/ElNounch/Core/deployments","created_at":"2016-08-12T20:47:42Z","updated_at":"2016-08-12T20:47:43Z","pushed_at":"2016-08-14T21:10:26Z","git_url":"git://github.com/ElNounch/Core.git","ssh_url":"git@github.com:ElNounch/Core.git","clone_url":"https://github.com/ElNounch/Core.git","svn_url":"https://github.com/ElNounch/Core","homepage":"","size":545,"stargazers_count":0,"watchers_count":0,"language":"Lua","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":"cuberite:master","ref":"master","sha":"a23bdb25a54efb3eadca399a8cf05dd5b6cbffcf","user":{"login":"cuberite","id":8973961,"avatar_url":"https://avatars.githubusercontent.com/u/8973961?v=3","gravatar_id":"","url":"https://api.github.com/users/cuberite","html_url":"https://github.com/cuberite","followers_url":"https://api.github.com/users/cuberite/followers","following_url":"https://api.github.com/users/cuberite/following{/other_user}","gists_url":"https://api.github.com/users/cuberite/gists{/gist_id}","starred_url":"https://api.github.com/users/cuberite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuberite/subscriptions","organizations_url":"https://api.github.com/users/cuberite/orgs","repos_url":"https://api.github.com/users/cuberite/repos","events_url":"https://api.github.com/users/cuberite/events{/privacy}","received_events_url":"https://api.github.com/users/cuberite/received_events","type":"Organization","site_admin":false},"repo":{"id":11706426,"name":"Core","full_name":"cuberite/Core","owner":{"login":"cuberite","id":8973961,"avatar_url":"https://avatars.githubusercontent.com/u/8973961?v=3","gravatar_id":"","url":"https://api.github.com/users/cuberite","html_url":"https://github.com/cuberite","followers_url":"https://api.github.com/users/cuberite/followers","following_url":"https://api.github.com/users/cuberite/following{/other_user}","gists_url":"https://api.github.com/users/cuberite/gists{/gist_id}","starred_url":"https://api.github.com/users/cuberite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuberite/subscriptions","organizations_url":"https://api.github.com/users/cuberite/orgs","repos_url":"https://api.github.com/users/cuberite/repos","events_url":"https://api.github.com/users/cuberite/events{/privacy}","received_events_url":"https://api.github.com/users/cuberite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cuberite/Core","description":"The Core Plugin for Cuberite","fork":false,"url":"https://api.github.com/repos/cuberite/Core","forks_url":"https://api.github.com/repos/cuberite/Core/forks","keys_url":"https://api.github.com/repos/cuberite/Core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuberite/Core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuberite/Core/teams","hooks_url":"https://api.github.com/repos/cuberite/Core/hooks","issue_events_url":"https://api.github.com/repos/cuberite/Core/issues/events{/number}","events_url":"https://api.github.com/repos/cuberite/Core/events","assignees_url":"https://api.github.com/repos/cuberite/Core/assignees{/user}","branches_url":"https://api.github.com/repos/cuberite/Core/branches{/branch}","tags_url":"https://api.github.com/repos/cuberite/Core/tags","blobs_url":"https://api.github.com/repos/cuberite/Core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuberite/Core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuberite/Core/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuberite/Core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuberite/Core/statuses/{sha}","languages_url":"https://api.github.com/repos/cuberite/Core/languages","stargazers_url":"https://api.github.com/repos/cuberite/Core/stargazers","contributors_url":"https://api.github.com/repos/cuberite/Core/contributors","subscribers_url":"https://api.github.com/repos/cuberite/Core/subscribers","subscription_url":"https://api.github.com/repos/cuberite/Core/subscription","commits_url":"https://api.github.com/repos/cuberite/Core/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuberite/Core/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuberite/Core/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuberite/Core/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuberite/Core/contents/{+path}","compare_url":"https://api.github.com/repos/cuberite/Core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuberite/Core/merges","archive_url":"https://api.github.com/repos/cuberite/Core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuberite/Core/downloads","issues_url":"https://api.github.com/repos/cuberite/Core/issues{/number}","pulls_url":"https://api.github.com/repos/cuberite/Core/pulls{/number}","milestones_url":"https://api.github.com/repos/cuberite/Core/milestones{/number}","notifications_url":"https://api.github.com/repos/cuberite/Core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuberite/Core/labels{/name}","releases_url":"https://api.github.com/repos/cuberite/Core/releases{/id}","deployments_url":"https://api.github.com/repos/cuberite/Core/deployments","created_at":"2013-07-27T14:59:53Z","updated_at":"2016-07-23T15:04:49Z","pushed_at":"2016-08-14T21:10:27Z","git_url":"git://github.com/cuberite/Core.git","ssh_url":"git@github.com:cuberite/Core.git","clone_url":"https://github.com/cuberite/Core.git","svn_url":"https://github.com/cuberite/Core","homepage":"","size":843,"stargazers_count":23,"watchers_count":23,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":24,"forks":25,"open_issues":24,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cuberite/Core/pulls/172"},"html":{"href":"https://github.com/cuberite/Core/pull/172"},"issue":{"href":"https://api.github.com/repos/cuberite/Core/issues/172"},"comments":{"href":"https://api.github.com/repos/cuberite/Core/issues/172/comments"},"review_comments":{"href":"https://api.github.com/repos/cuberite/Core/pulls/172/comments"},"review_comment":{"href":"https://api.github.com/repos/cuberite/Core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cuberite/Core/pulls/172/commits"},"statuses":{"href":"https://api.github.com/repos/cuberite/Core/statuses/c101b2c3aec1f6f6b243ef79e015a227a2bcd961"}}}}
{"actor":{"display_login":"madmaxoft"}}