{"action":"created","issue":{"url":"https://api.github.com/repos/MT-CTF/capturetheflag/issues/266","repository_url":"https://api.github.com/repos/MT-CTF/capturetheflag","labels_url":"https://api.github.com/repos/MT-CTF/capturetheflag/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/MT-CTF/capturetheflag/issues/266/comments","events_url":"https://api.github.com/repos/MT-CTF/capturetheflag/issues/266/events","html_url":"https://github.com/MT-CTF/capturetheflag/pull/266","id":383630557,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMDU0MDI5","number":266,"title":"Add a 10 minute temporary lockout feature when vote kicked","user":{"login":"MinetestSam","id":42088654,"node_id":"MDQ6VXNlcjQyMDg4NjU0","avatar_url":"https://avatars2.githubusercontent.com/u/42088654?v=4","gravatar_id":"","url":"https://api.github.com/users/MinetestSam","html_url":"https://github.com/MinetestSam","followers_url":"https://api.github.com/users/MinetestSam/followers","following_url":"https://api.github.com/users/MinetestSam/following{/other_user}","gists_url":"https://api.github.com/users/MinetestSam/gists{/gist_id}","starred_url":"https://api.github.com/users/MinetestSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinetestSam/subscriptions","organizations_url":"https://api.github.com/users/MinetestSam/orgs","repos_url":"https://api.github.com/users/MinetestSam/repos","events_url":"https://api.github.com/users/MinetestSam/events{/privacy}","received_events_url":"https://api.github.com/users/MinetestSam/received_events","type":"User","site_admin":false},"labels":[{"id":818506895,"node_id":"MDU6TGFiZWw4MTg1MDY4OTU=","url":"https://api.github.com/repos/MT-CTF/capturetheflag/labels/@%20AntiAbuse","name":"@ AntiAbuse","color":"0e8a16","default":false},{"id":711873732,"node_id":"MDU6TGFiZWw3MTE4NzM3MzI=","url":"https://api.github.com/repos/MT-CTF/capturetheflag/labels/Feature","name":"Feature","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-11-22T18:24:24Z","updated_at":"2018-11-24T11:37:15Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/MT-CTF/capturetheflag/pulls/266","html_url":"https://github.com/MT-CTF/capturetheflag/pull/266","diff_url":"https://github.com/MT-CTF/capturetheflag/pull/266.diff","patch_url":"https://github.com/MT-CTF/capturetheflag/pull/266.patch"},"body":"When a player is kicked he/she is locked out from joining until 10 minutes are completed\r\nThis acts as 10 minute temporary ban\r\n\r\nAll credit goes to shivajiva \r\n\r\ncloses #265 "},"comment":{"url":"https://api.github.com/repos/MT-CTF/capturetheflag/issues/comments/441361688","html_url":"https://github.com/MT-CTF/capturetheflag/pull/266#issuecomment-441361688","issue_url":"https://api.github.com/repos/MT-CTF/capturetheflag/issues/266","id":441361688,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTM2MTY4OA==","user":{"login":"ClobberXD","id":36130650,"node_id":"MDQ6VXNlcjM2MTMwNjUw","avatar_url":"https://avatars1.githubusercontent.com/u/36130650?v=4","gravatar_id":"","url":"https://api.github.com/users/ClobberXD","html_url":"https://github.com/ClobberXD","followers_url":"https://api.github.com/users/ClobberXD/followers","following_url":"https://api.github.com/users/ClobberXD/following{/other_user}","gists_url":"https://api.github.com/users/ClobberXD/gists{/gist_id}","starred_url":"https://api.github.com/users/ClobberXD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClobberXD/subscriptions","organizations_url":"https://api.github.com/users/ClobberXD/orgs","repos_url":"https://api.github.com/users/ClobberXD/repos","events_url":"https://api.github.com/users/ClobberXD/events{/privacy}","received_events_url":"https://api.github.com/users/ClobberXD/received_events","type":"User","site_admin":false},"created_at":"2018-11-24T11:37:15Z","updated_at":"2018-11-24T11:37:15Z","author_association":"MEMBER","body":"@MinetestSam The indentation needs a little fixing like Shivajiva says. Here's how it should look like:\r\n```\r\n\t\t\t\t\tif result == \"yes\" then\r\n\t\t\t\t\t\tminetest.chat_send_all(\"Vote passed, \" ..\r\n\t\t\t\t\t\t\t\t#results.yes .. \" to \" .. #results.no .. \", \" ..\r\n\t\t\t\t\t\t\t\tself.name .. \" will be kicked.\")\r\n\t\t\t\t\t\tminetest.kick_player(self.name, \"The vote to kick you passed. You have been temporarily banned for 10 minutes\")\r\n\t\t\t\t\t\t-- after player kick\r\n\t\t\t\t\t\tvlist[self.name].locked = true\r\n\t\t\t\t\t\tminetest.after(600, function()\r\n\t\t\t\t\t\t\tvlist[self.name] = nil\r\n\t\t\t\t\t\tend)\r\n\t\t\t\t\telse\r\n```"}}
{"actor":{"display_login":"ClobberXD"}}