{"action":"closed","issue":{"url":"https://api.github.com/repos/vram4/Ogar/issues/90","labels_url":"https://api.github.com/repos/vram4/Ogar/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/vram4/Ogar/issues/90/comments","events_url":"https://api.github.com/repos/vram4/Ogar/issues/90/events","html_url":"https://github.com/vram4/Ogar/issues/90","id":90002144,"number":90,"title":"Non-random teams","user":{"login":"batbug","id":12694590,"avatar_url":"https://avatars.githubusercontent.com/u/12694590?v=3","gravatar_id":"","url":"https://api.github.com/users/batbug","html_url":"https://github.com/batbug","followers_url":"https://api.github.com/users/batbug/followers","following_url":"https://api.github.com/users/batbug/following{/other_user}","gists_url":"https://api.github.com/users/batbug/gists{/gist_id}","starred_url":"https://api.github.com/users/batbug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batbug/subscriptions","organizations_url":"https://api.github.com/users/batbug/orgs","repos_url":"https://api.github.com/users/batbug/repos","events_url":"https://api.github.com/users/batbug/events{/privacy}","received_events_url":"https://api.github.com/users/batbug/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-06-22T03:41:03Z","updated_at":"2015-06-23T06:15:12Z","closed_at":"2015-06-23T06:15:12Z","body":"Hello. I'd like to modify TEAMS mode. \r\nRight now teams are assigned randomly.\r\nplayer.team = Math.floor(Math.random() * this.teamAmount);\r\nBut how can I assign team based on a player name?\r\n\r\nTeams.prototype.onPlayerInit = function(player) { }\r\n\r\nhere the 'player' doesnot have the player name yet.\r\n\r\nAny ideas?"}}