{"action":"created","comment":{"url":"https://api.github.com/repos/cuberite/cuberite/pulls/comments/47898513","id":47898513,"diff_hunk":"@@ -2968,6 +2969,182 @@ static int tolua_cBlockArea_SaveToSchematicString(lua_State * tolua_S)\n \n \n \n+static int tolua_cChatMessageBuilder_AppendPart(lua_State * tolua_S)\n+{\n+\t// function cChatMessageBuilder:AppendPart(Message)\n+\t// Exported manually to support call-chaining (return *this)\n+\n+\t// Check params:\n+\tcLuaState L(tolua_S);\n+\tif (\n+\t\t!L.CheckParamUserType(1, \"cChatMessageBuilder\") ||\n+\t\t!L.CheckParamString(2)\n+\t\t)\n+\t{\n+\t\treturn 0;\n+\t}\n+\tcChatMessageBuilder * self = reinterpret_cast<cChatMessageBuilder *>(tolua_tousertype(tolua_S, 1, nullptr));\n+\tif (self == nullptr)\n+\t{\n+\t\ttolua_error(tolua_S, \"invalid 'self' in function 'cChatMessageBuilder:AppendPart'\", nullptr);\n+\t\treturn 0;\n+\t}\n+\n+\t// Add the part:\n+\tAString Text;\n+\tL.GetStackValue(2, Text);\n+\tself->AppendPart(Text);\n+\n+\t// Cut away everything from the stack except for the cChatMessageBuilder instance; return that:\n+\tlua_settop(L, 1);\n+\treturn 1;\n+}\n+\n+\n+\n+\n+\n+static int tolua_cChatMessageBuilder_SetClickEvent(lua_State * tolua_S)\n+{\n+\t// function cChatMessageBuilder:SetClickEvent(Action, Text)\n+\t// Exported manually to support call-chaining (return *this)\n+\n+\t// Check params:\n+\tcLuaState L(tolua_S);\n+\tif (\n+\t\t!L.CheckParamUserType(1, \"cChatMessageBuilder\") ||\n+\t\t!L.CheckParamString(2, 3)\n+\t\t)\n+\t{\n+\t\treturn 0;\n+\t}\n+\tcChatMessageBuilder * self = reinterpret_cast<cChatMessageBuilder *>(tolua_tousertype(tolua_S, 1, nullptr));\n+\tif (self == nullptr)\n+\t{\n+\t\ttolua_error(tolua_S, \"invalid 'self' in function 'cChatMessageBuilder:SetClickEvent'\", nullptr);\n+\t\treturn 0;\n+\t}\n+\n+\t// Add the part:","path":"src/Bindings/ManualBindings.cpp","position":68,"original_position":68,"commit_id":"5ee0f05d4db90aeec48efacb9c2fe8d060502b20","original_commit_id":"5ee0f05d4db90aeec48efacb9c2fe8d060502b20","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":"Wrong comment (copypasta)","created_at":"2015-12-17T12:09:22Z","updated_at":"2015-12-17T12:09:22Z","html_url":"https://github.com/cuberite/cuberite/pull/2764#discussion_r47898513","pull_request_url":"https://api.github.com/repos/cuberite/cuberite/pulls/2764","_links":{"self":{"href":"https://api.github.com/repos/cuberite/cuberite/pulls/comments/47898513"},"html":{"href":"https://github.com/cuberite/cuberite/pull/2764#discussion_r47898513"},"pull_request":{"href":"https://api.github.com/repos/cuberite/cuberite/pulls/2764"}}},"pull_request":{"url":"https://api.github.com/repos/cuberite/cuberite/pulls/2764","id":53962938,"html_url":"https://github.com/cuberite/cuberite/pull/2764","diff_url":"https://github.com/cuberite/cuberite/pull/2764.diff","patch_url":"https://github.com/cuberite/cuberite/pull/2764.patch","issue_url":"https://api.github.com/repos/cuberite/cuberite/issues/2764","number":2764,"state":"open","locked":false,"title":"Implemented new method for creating a chat message","user":{"login":"Seadragon91","id":14818618,"avatar_url":"https://avatars.githubusercontent.com/u/14818618?v=3","gravatar_id":"","url":"https://api.github.com/users/Seadragon91","html_url":"https://github.com/Seadragon91","followers_url":"https://api.github.com/users/Seadragon91/followers","following_url":"https://api.github.com/users/Seadragon91/following{/other_user}","gists_url":"https://api.github.com/users/Seadragon91/gists{/gist_id}","starred_url":"https://api.github.com/users/Seadragon91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seadragon91/subscriptions","organizations_url":"https://api.github.com/users/Seadragon91/orgs","repos_url":"https://api.github.com/users/Seadragon91/repos","events_url":"https://api.github.com/users/Seadragon91/events{/privacy}","received_events_url":"https://api.github.com/users/Seadragon91/received_events","type":"User","site_admin":false},"body":"Do not merge yet!\r\n\r\nThis is a start to implement a new way of creating a chat message.\r\n\r\nQuestions:\r\n* Should the constructor from cChatMessageBuilder, accepts a text for start\r\n* Should achievement part be added\r\n* SetColor/SetStyle or better only with cChatColor\r\n\r\nTodos:\r\n* A check for the size of m_Parts should be added, to avoid crash if no text has been appended. Where in the code?\r\n* Add method BroadcastChat in cRoot/cWorld for cChatMessageBuilder","created_at":"2015-12-17T11:09:44Z","updated_at":"2015-12-17T12:09:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c26b1b77243a4577a2a32cd7267564c3a6ba670","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cuberite/cuberite/pulls/2764/commits","review_comments_url":"https://api.github.com/repos/cuberite/cuberite/pulls/2764/comments","review_comment_url":"https://api.github.com/repos/cuberite/cuberite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cuberite/cuberite/issues/2764/comments","statuses_url":"https://api.github.com/repos/cuberite/cuberite/statuses/5ee0f05d4db90aeec48efacb9c2fe8d060502b20","head":{"label":"cuberite:chat_message","ref":"chat_message","sha":"5ee0f05d4db90aeec48efacb9c2fe8d060502b20","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":11693709,"name":"cuberite","full_name":"cuberite/cuberite","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/cuberite","description":"A performant C++ Minecraft compatible game server","fork":false,"url":"https://api.github.com/repos/cuberite/cuberite","forks_url":"https://api.github.com/repos/cuberite/cuberite/forks","keys_url":"https://api.github.com/repos/cuberite/cuberite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuberite/cuberite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuberite/cuberite/teams","hooks_url":"https://api.github.com/repos/cuberite/cuberite/hooks","issue_events_url":"https://api.github.com/repos/cuberite/cuberite/issues/events{/number}","events_url":"https://api.github.com/repos/cuberite/cuberite/events","assignees_url":"https://api.github.com/repos/cuberite/cuberite/assignees{/user}","branches_url":"https://api.github.com/repos/cuberite/cuberite/branches{/branch}","tags_url":"https://api.github.com/repos/cuberite/cuberite/tags","blobs_url":"https://api.github.com/repos/cuberite/cuberite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuberite/cuberite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuberite/cuberite/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuberite/cuberite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuberite/cuberite/statuses/{sha}","languages_url":"https://api.github.com/repos/cuberite/cuberite/languages","stargazers_url":"https://api.github.com/repos/cuberite/cuberite/stargazers","contributors_url":"https://api.github.com/repos/cuberite/cuberite/contributors","subscribers_url":"https://api.github.com/repos/cuberite/cuberite/subscribers","subscription_url":"https://api.github.com/repos/cuberite/cuberite/subscription","commits_url":"https://api.github.com/repos/cuberite/cuberite/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuberite/cuberite/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuberite/cuberite/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuberite/cuberite/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuberite/cuberite/contents/{+path}","compare_url":"https://api.github.com/repos/cuberite/cuberite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuberite/cuberite/merges","archive_url":"https://api.github.com/repos/cuberite/cuberite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuberite/cuberite/downloads","issues_url":"https://api.github.com/repos/cuberite/cuberite/issues{/number}","pulls_url":"https://api.github.com/repos/cuberite/cuberite/pulls{/number}","milestones_url":"https://api.github.com/repos/cuberite/cuberite/milestones{/number}","notifications_url":"https://api.github.com/repos/cuberite/cuberite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuberite/cuberite/labels{/name}","releases_url":"https://api.github.com/repos/cuberite/cuberite/releases{/id}","created_at":"2013-07-26T19:56:59Z","updated_at":"2015-12-17T04:46:26Z","pushed_at":"2015-12-17T11:09:44Z","git_url":"git://github.com/cuberite/cuberite.git","ssh_url":"git@github.com:cuberite/cuberite.git","clone_url":"https://github.com/cuberite/cuberite.git","svn_url":"https://github.com/cuberite/cuberite","homepage":"http://cuberite.org","size":146786,"stargazers_count":1006,"watchers_count":1006,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":259,"mirror_url":null,"open_issues_count":426,"forks":259,"open_issues":426,"watchers":1006,"default_branch":"master"}},"base":{"label":"cuberite:master","ref":"master","sha":"1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb","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":11693709,"name":"cuberite","full_name":"cuberite/cuberite","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/cuberite","description":"A performant C++ Minecraft compatible game server","fork":false,"url":"https://api.github.com/repos/cuberite/cuberite","forks_url":"https://api.github.com/repos/cuberite/cuberite/forks","keys_url":"https://api.github.com/repos/cuberite/cuberite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuberite/cuberite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuberite/cuberite/teams","hooks_url":"https://api.github.com/repos/cuberite/cuberite/hooks","issue_events_url":"https://api.github.com/repos/cuberite/cuberite/issues/events{/number}","events_url":"https://api.github.com/repos/cuberite/cuberite/events","assignees_url":"https://api.github.com/repos/cuberite/cuberite/assignees{/user}","branches_url":"https://api.github.com/repos/cuberite/cuberite/branches{/branch}","tags_url":"https://api.github.com/repos/cuberite/cuberite/tags","blobs_url":"https://api.github.com/repos/cuberite/cuberite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuberite/cuberite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuberite/cuberite/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuberite/cuberite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuberite/cuberite/statuses/{sha}","languages_url":"https://api.github.com/repos/cuberite/cuberite/languages","stargazers_url":"https://api.github.com/repos/cuberite/cuberite/stargazers","contributors_url":"https://api.github.com/repos/cuberite/cuberite/contributors","subscribers_url":"https://api.github.com/repos/cuberite/cuberite/subscribers","subscription_url":"https://api.github.com/repos/cuberite/cuberite/subscription","commits_url":"https://api.github.com/repos/cuberite/cuberite/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuberite/cuberite/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuberite/cuberite/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuberite/cuberite/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuberite/cuberite/contents/{+path}","compare_url":"https://api.github.com/repos/cuberite/cuberite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuberite/cuberite/merges","archive_url":"https://api.github.com/repos/cuberite/cuberite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuberite/cuberite/downloads","issues_url":"https://api.github.com/repos/cuberite/cuberite/issues{/number}","pulls_url":"https://api.github.com/repos/cuberite/cuberite/pulls{/number}","milestones_url":"https://api.github.com/repos/cuberite/cuberite/milestones{/number}","notifications_url":"https://api.github.com/repos/cuberite/cuberite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuberite/cuberite/labels{/name}","releases_url":"https://api.github.com/repos/cuberite/cuberite/releases{/id}","created_at":"2013-07-26T19:56:59Z","updated_at":"2015-12-17T04:46:26Z","pushed_at":"2015-12-17T11:09:44Z","git_url":"git://github.com/cuberite/cuberite.git","ssh_url":"git@github.com:cuberite/cuberite.git","clone_url":"https://github.com/cuberite/cuberite.git","svn_url":"https://github.com/cuberite/cuberite","homepage":"http://cuberite.org","size":146786,"stargazers_count":1006,"watchers_count":1006,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":259,"mirror_url":null,"open_issues_count":426,"forks":259,"open_issues":426,"watchers":1006,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cuberite/cuberite/pulls/2764"},"html":{"href":"https://github.com/cuberite/cuberite/pull/2764"},"issue":{"href":"https://api.github.com/repos/cuberite/cuberite/issues/2764"},"comments":{"href":"https://api.github.com/repos/cuberite/cuberite/issues/2764/comments"},"review_comments":{"href":"https://api.github.com/repos/cuberite/cuberite/pulls/2764/comments"},"review_comment":{"href":"https://api.github.com/repos/cuberite/cuberite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cuberite/cuberite/pulls/2764/commits"},"statuses":{"href":"https://api.github.com/repos/cuberite/cuberite/statuses/5ee0f05d4db90aeec48efacb9c2fe8d060502b20"}}}}