{"action":"created","comment":{"url":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/comments/222586016","pull_request_review_id":161505911,"id":222586016,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjU4NjAxNg==","diff_hunk":"@@ -82,12 +84,20 @@ class Main {\n         event.register(NetherGenModifier())\n     }\n \n+    @Suppress(\"DEPRECATION\")\n     @Listener\n     fun onPreInit(event: GamePreInitializationEvent) {\n         serverThread = Sponge.getScheduler().createSyncExecutor(this).asCoroutineDispatcher()\n         delay = DelayedExecute(plugin)\n-        languageService = LanguageService()\n-        vanillaLanguageService = LanguageService(\"vanilla\")\n+\n+        val languageService = LanguageService()\n+        val vanillaLanguageService = LanguageService(\"vanilla\")\n+\n+        Sponge.getServiceManager().provide(one.oktw.i18n.api.I18n::class.java).get().let {","path":"src/main/kotlin/one/oktw/galaxy/Main.kt","position":56,"original_position":56,"commit_id":"ccf5846ab7b70887727b1a4fb9b5f6d65ff1b2cb","original_commit_id":"ccf5846ab7b70887727b1a4fb9b5f6d65ff1b2cb","user":{"login":"mmis1000","id":2993977,"node_id":"MDQ6VXNlcjI5OTM5Nzc=","avatar_url":"https://avatars3.githubusercontent.com/u/2993977?v=4","gravatar_id":"","url":"https://api.github.com/users/mmis1000","html_url":"https://github.com/mmis1000","followers_url":"https://api.github.com/users/mmis1000/followers","following_url":"https://api.github.com/users/mmis1000/following{/other_user}","gists_url":"https://api.github.com/users/mmis1000/gists{/gist_id}","starred_url":"https://api.github.com/users/mmis1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmis1000/subscriptions","organizations_url":"https://api.github.com/users/mmis1000/orgs","repos_url":"https://api.github.com/users/mmis1000/repos","events_url":"https://api.github.com/users/mmis1000/events{/privacy}","received_events_url":"https://api.github.com/users/mmis1000/received_events","type":"User","site_admin":false},"body":"為啥？這裡就依個參數啊？設this做什麼？","created_at":"2018-10-04T08:50:21Z","updated_at":"2018-10-04T08:50:21Z","html_url":"https://github.com/OKTW-Network/Galaxy/pull/201#discussion_r222586016","pull_request_url":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/201","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/comments/222586016"},"html":{"href":"https://github.com/OKTW-Network/Galaxy/pull/201#discussion_r222586016"},"pull_request":{"href":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/201"}},"in_reply_to_id":222553607},"pull_request":{"url":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/201","id":213944743,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzOTQ0NzQz","html_url":"https://github.com/OKTW-Network/Galaxy/pull/201","diff_url":"https://github.com/OKTW-Network/Galaxy/pull/201.diff","patch_url":"https://github.com/OKTW-Network/Galaxy/pull/201.patch","issue_url":"https://api.github.com/repos/OKTW-Network/Galaxy/issues/201","number":201,"state":"open","locked":false,"title":"I18n","user":{"login":"mmis1000","id":2993977,"node_id":"MDQ6VXNlcjI5OTM5Nzc=","avatar_url":"https://avatars3.githubusercontent.com/u/2993977?v=4","gravatar_id":"","url":"https://api.github.com/users/mmis1000","html_url":"https://github.com/mmis1000","followers_url":"https://api.github.com/users/mmis1000/followers","following_url":"https://api.github.com/users/mmis1000/following{/other_user}","gists_url":"https://api.github.com/users/mmis1000/gists{/gist_id}","starred_url":"https://api.github.com/users/mmis1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmis1000/subscriptions","organizations_url":"https://api.github.com/users/mmis1000/orgs","repos_url":"https://api.github.com/users/mmis1000/repos","events_url":"https://api.github.com/users/mmis1000/events{/privacy}","received_events_url":"https://api.github.com/users/mmis1000/received_events","type":"User","site_admin":false},"body":"Enable I18n globally and make languageService instance private  \r\n\r\nAdd dependency of \r\n - sponge-i18n 0.1.3\r\n   - packet gate 0.1.2\r\n\r\nChecklist\r\n - [x] items\r\n   - [x] Weapon\r\n   - [x] Materials\r\n   - [x] Tools\r\n   - [x] Upgrades\r\n   - [x] Fakeblock item\r\n - [x] gui\r\n   - [x] MainMenu and all child gui\r\n   - [x] PlanetTerminal and all child gui\r\n   - [x] chunk loader\r\n   - [x] Hi-tech crafting recipe and all child gui\r\n - [x] Messages\r\n   - [x] create planet\r\n   - [x] chat confirm\r\n   - [x] sign edit\r\n   - [x] member remove notice\r\n - [x] Misc\r\n   - [x] armor status message\r\n   - [x] star dust event","created_at":"2018-09-07T14:25:09Z","updated_at":"2018-10-04T08:50:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4ef43fbacf6076572a1e59dad40e5e2775c3df2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":871676405,"node_id":"MDU6TGFiZWw4NzE2NzY0MDU=","url":"https://api.github.com/repos/OKTW-Network/Galaxy/labels/status:%20needs%20testing","name":"status: needs testing","color":"a2f4a1","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/201/commits","review_comments_url":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/201/comments","review_comment_url":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OKTW-Network/Galaxy/issues/201/comments","statuses_url":"https://api.github.com/repos/OKTW-Network/Galaxy/statuses/ccf5846ab7b70887727b1a4fb9b5f6d65ff1b2cb","head":{"label":"mmis1000:i18n","ref":"i18n","sha":"ccf5846ab7b70887727b1a4fb9b5f6d65ff1b2cb","user":{"login":"mmis1000","id":2993977,"node_id":"MDQ6VXNlcjI5OTM5Nzc=","avatar_url":"https://avatars3.githubusercontent.com/u/2993977?v=4","gravatar_id":"","url":"https://api.github.com/users/mmis1000","html_url":"https://github.com/mmis1000","followers_url":"https://api.github.com/users/mmis1000/followers","following_url":"https://api.github.com/users/mmis1000/following{/other_user}","gists_url":"https://api.github.com/users/mmis1000/gists{/gist_id}","starred_url":"https://api.github.com/users/mmis1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmis1000/subscriptions","organizations_url":"https://api.github.com/users/mmis1000/orgs","repos_url":"https://api.github.com/users/mmis1000/repos","events_url":"https://api.github.com/users/mmis1000/events{/privacy}","received_events_url":"https://api.github.com/users/mmis1000/received_events","type":"User","site_admin":false},"repo":{"id":141246930,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEyNDY5MzA=","name":"Galaxy","full_name":"mmis1000/Galaxy","private":false,"owner":{"login":"mmis1000","id":2993977,"node_id":"MDQ6VXNlcjI5OTM5Nzc=","avatar_url":"https://avatars3.githubusercontent.com/u/2993977?v=4","gravatar_id":"","url":"https://api.github.com/users/mmis1000","html_url":"https://github.com/mmis1000","followers_url":"https://api.github.com/users/mmis1000/followers","following_url":"https://api.github.com/users/mmis1000/following{/other_user}","gists_url":"https://api.github.com/users/mmis1000/gists{/gist_id}","starred_url":"https://api.github.com/users/mmis1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmis1000/subscriptions","organizations_url":"https://api.github.com/users/mmis1000/orgs","repos_url":"https://api.github.com/users/mmis1000/repos","events_url":"https://api.github.com/users/mmis1000/events{/privacy}","received_events_url":"https://api.github.com/users/mmis1000/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mmis1000/Galaxy","description":"OKTW 星系計畫插件","fork":true,"url":"https://api.github.com/repos/mmis1000/Galaxy","forks_url":"https://api.github.com/repos/mmis1000/Galaxy/forks","keys_url":"https://api.github.com/repos/mmis1000/Galaxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmis1000/Galaxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmis1000/Galaxy/teams","hooks_url":"https://api.github.com/repos/mmis1000/Galaxy/hooks","issue_events_url":"https://api.github.com/repos/mmis1000/Galaxy/issues/events{/number}","events_url":"https://api.github.com/repos/mmis1000/Galaxy/events","assignees_url":"https://api.github.com/repos/mmis1000/Galaxy/assignees{/user}","branches_url":"https://api.github.com/repos/mmis1000/Galaxy/branches{/branch}","tags_url":"https://api.github.com/repos/mmis1000/Galaxy/tags","blobs_url":"https://api.github.com/repos/mmis1000/Galaxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmis1000/Galaxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmis1000/Galaxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmis1000/Galaxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmis1000/Galaxy/statuses/{sha}","languages_url":"https://api.github.com/repos/mmis1000/Galaxy/languages","stargazers_url":"https://api.github.com/repos/mmis1000/Galaxy/stargazers","contributors_url":"https://api.github.com/repos/mmis1000/Galaxy/contributors","subscribers_url":"https://api.github.com/repos/mmis1000/Galaxy/subscribers","subscription_url":"https://api.github.com/repos/mmis1000/Galaxy/subscription","commits_url":"https://api.github.com/repos/mmis1000/Galaxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmis1000/Galaxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmis1000/Galaxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmis1000/Galaxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmis1000/Galaxy/contents/{+path}","compare_url":"https://api.github.com/repos/mmis1000/Galaxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmis1000/Galaxy/merges","archive_url":"https://api.github.com/repos/mmis1000/Galaxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmis1000/Galaxy/downloads","issues_url":"https://api.github.com/repos/mmis1000/Galaxy/issues{/number}","pulls_url":"https://api.github.com/repos/mmis1000/Galaxy/pulls{/number}","milestones_url":"https://api.github.com/repos/mmis1000/Galaxy/milestones{/number}","notifications_url":"https://api.github.com/repos/mmis1000/Galaxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmis1000/Galaxy/labels{/name}","releases_url":"https://api.github.com/repos/mmis1000/Galaxy/releases{/id}","deployments_url":"https://api.github.com/repos/mmis1000/Galaxy/deployments","created_at":"2018-07-17T07:11:04Z","updated_at":"2018-08-04T19:12:40Z","pushed_at":"2018-10-04T06:39:07Z","git_url":"git://github.com/mmis1000/Galaxy.git","ssh_url":"git@github.com:mmis1000/Galaxy.git","clone_url":"https://github.com/mmis1000/Galaxy.git","svn_url":"https://github.com/mmis1000/Galaxy","homepage":"","size":1886,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OKTW-Network:master","ref":"master","sha":"1490ed3e35fd44d792e5ec04e34abeffc7951d92","user":{"login":"OKTW-Network","id":37068672,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDY4Njcy","avatar_url":"https://avatars2.githubusercontent.com/u/37068672?v=4","gravatar_id":"","url":"https://api.github.com/users/OKTW-Network","html_url":"https://github.com/OKTW-Network","followers_url":"https://api.github.com/users/OKTW-Network/followers","following_url":"https://api.github.com/users/OKTW-Network/following{/other_user}","gists_url":"https://api.github.com/users/OKTW-Network/gists{/gist_id}","starred_url":"https://api.github.com/users/OKTW-Network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OKTW-Network/subscriptions","organizations_url":"https://api.github.com/users/OKTW-Network/orgs","repos_url":"https://api.github.com/users/OKTW-Network/repos","events_url":"https://api.github.com/users/OKTW-Network/events{/privacy}","received_events_url":"https://api.github.com/users/OKTW-Network/received_events","type":"Organization","site_admin":false},"repo":{"id":103022135,"node_id":"MDEwOlJlcG9zaXRvcnkxMDMwMjIxMzU=","name":"Galaxy","full_name":"OKTW-Network/Galaxy","private":false,"owner":{"login":"OKTW-Network","id":37068672,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDY4Njcy","avatar_url":"https://avatars2.githubusercontent.com/u/37068672?v=4","gravatar_id":"","url":"https://api.github.com/users/OKTW-Network","html_url":"https://github.com/OKTW-Network","followers_url":"https://api.github.com/users/OKTW-Network/followers","following_url":"https://api.github.com/users/OKTW-Network/following{/other_user}","gists_url":"https://api.github.com/users/OKTW-Network/gists{/gist_id}","starred_url":"https://api.github.com/users/OKTW-Network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OKTW-Network/subscriptions","organizations_url":"https://api.github.com/users/OKTW-Network/orgs","repos_url":"https://api.github.com/users/OKTW-Network/repos","events_url":"https://api.github.com/users/OKTW-Network/events{/privacy}","received_events_url":"https://api.github.com/users/OKTW-Network/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/OKTW-Network/Galaxy","description":"OKTW 星系計畫插件","fork":false,"url":"https://api.github.com/repos/OKTW-Network/Galaxy","forks_url":"https://api.github.com/repos/OKTW-Network/Galaxy/forks","keys_url":"https://api.github.com/repos/OKTW-Network/Galaxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OKTW-Network/Galaxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OKTW-Network/Galaxy/teams","hooks_url":"https://api.github.com/repos/OKTW-Network/Galaxy/hooks","issue_events_url":"https://api.github.com/repos/OKTW-Network/Galaxy/issues/events{/number}","events_url":"https://api.github.com/repos/OKTW-Network/Galaxy/events","assignees_url":"https://api.github.com/repos/OKTW-Network/Galaxy/assignees{/user}","branches_url":"https://api.github.com/repos/OKTW-Network/Galaxy/branches{/branch}","tags_url":"https://api.github.com/repos/OKTW-Network/Galaxy/tags","blobs_url":"https://api.github.com/repos/OKTW-Network/Galaxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OKTW-Network/Galaxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OKTW-Network/Galaxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/OKTW-Network/Galaxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OKTW-Network/Galaxy/statuses/{sha}","languages_url":"https://api.github.com/repos/OKTW-Network/Galaxy/languages","stargazers_url":"https://api.github.com/repos/OKTW-Network/Galaxy/stargazers","contributors_url":"https://api.github.com/repos/OKTW-Network/Galaxy/contributors","subscribers_url":"https://api.github.com/repos/OKTW-Network/Galaxy/subscribers","subscription_url":"https://api.github.com/repos/OKTW-Network/Galaxy/subscription","commits_url":"https://api.github.com/repos/OKTW-Network/Galaxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/OKTW-Network/Galaxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/OKTW-Network/Galaxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/OKTW-Network/Galaxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/OKTW-Network/Galaxy/contents/{+path}","compare_url":"https://api.github.com/repos/OKTW-Network/Galaxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OKTW-Network/Galaxy/merges","archive_url":"https://api.github.com/repos/OKTW-Network/Galaxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OKTW-Network/Galaxy/downloads","issues_url":"https://api.github.com/repos/OKTW-Network/Galaxy/issues{/number}","pulls_url":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls{/number}","milestones_url":"https://api.github.com/repos/OKTW-Network/Galaxy/milestones{/number}","notifications_url":"https://api.github.com/repos/OKTW-Network/Galaxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OKTW-Network/Galaxy/labels{/name}","releases_url":"https://api.github.com/repos/OKTW-Network/Galaxy/releases{/id}","deployments_url":"https://api.github.com/repos/OKTW-Network/Galaxy/deployments","created_at":"2017-09-10T10:50:14Z","updated_at":"2018-09-28T09:37:41Z","pushed_at":"2018-10-04T06:39:08Z","git_url":"git://github.com/OKTW-Network/Galaxy.git","ssh_url":"git@github.com:OKTW-Network/Galaxy.git","clone_url":"https://github.com/OKTW-Network/Galaxy.git","svn_url":"https://github.com/OKTW-Network/Galaxy","homepage":"","size":1820,"stargazers_count":5,"watchers_count":5,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":11,"open_issues":11,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/201"},"html":{"href":"https://github.com/OKTW-Network/Galaxy/pull/201"},"issue":{"href":"https://api.github.com/repos/OKTW-Network/Galaxy/issues/201"},"comments":{"href":"https://api.github.com/repos/OKTW-Network/Galaxy/issues/201/comments"},"review_comments":{"href":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/201/comments"},"review_comment":{"href":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OKTW-Network/Galaxy/pulls/201/commits"},"statuses":{"href":"https://api.github.com/repos/OKTW-Network/Galaxy/statuses/ccf5846ab7b70887727b1a4fb9b5f6d65ff1b2cb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mmis1000"}}