{"action":"created","issue":{"url":"https://api.github.com/repos/J4D3N/GameRanks/issues/6","repository_url":"https://api.github.com/repos/J4D3N/GameRanks","labels_url":"https://api.github.com/repos/J4D3N/GameRanks/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/J4D3N/GameRanks/issues/6/comments","events_url":"https://api.github.com/repos/J4D3N/GameRanks/issues/6/events","html_url":"https://github.com/J4D3N/GameRanks/issues/6","id":184726194,"number":6,"title":"Optimization on /ranks","user":{"login":"Tsuser1","id":3497259,"avatar_url":"https://avatars.githubusercontent.com/u/3497259?v=3","gravatar_id":"","url":"https://api.github.com/users/Tsuser1","html_url":"https://github.com/Tsuser1","followers_url":"https://api.github.com/users/Tsuser1/followers","following_url":"https://api.github.com/users/Tsuser1/following{/other_user}","gists_url":"https://api.github.com/users/Tsuser1/gists{/gist_id}","starred_url":"https://api.github.com/users/Tsuser1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tsuser1/subscriptions","organizations_url":"https://api.github.com/users/Tsuser1/orgs","repos_url":"https://api.github.com/users/Tsuser1/repos","events_url":"https://api.github.com/users/Tsuser1/events{/privacy}","received_events_url":"https://api.github.com/users/Tsuser1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/J4D3N/GameRanks/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-24T00:12:42Z","updated_at":"2016-10-25T18:18:32Z","closed_at":"2016-10-24T00:18:23Z","body":"The usage of this to find if a rank exists:\r\n`\t\t\t\tfor(Rank rankSearch : rankManager.getRanks()) {\r\n\t\t\t\t\tif(rankSearch.getName().equalsIgnoreCase(arg)) {\r\n\t\t\t\t\t\trank = rankSearch;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}`\r\nIs extremely unoptimized, instead use a `plugin.getConfig().getConfigurationSection(\"ranks\").contains(arg);`, it also leads to less calls."},"comment":{"url":"https://api.github.com/repos/J4D3N/GameRanks/issues/comments/256120229","html_url":"https://github.com/J4D3N/GameRanks/issues/6#issuecomment-256120229","issue_url":"https://api.github.com/repos/J4D3N/GameRanks/issues/6","id":256120229,"user":{"login":"Tsuser1","id":3497259,"avatar_url":"https://avatars.githubusercontent.com/u/3497259?v=3","gravatar_id":"","url":"https://api.github.com/users/Tsuser1","html_url":"https://github.com/Tsuser1","followers_url":"https://api.github.com/users/Tsuser1/followers","following_url":"https://api.github.com/users/Tsuser1/following{/other_user}","gists_url":"https://api.github.com/users/Tsuser1/gists{/gist_id}","starred_url":"https://api.github.com/users/Tsuser1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tsuser1/subscriptions","organizations_url":"https://api.github.com/users/Tsuser1/orgs","repos_url":"https://api.github.com/users/Tsuser1/repos","events_url":"https://api.github.com/users/Tsuser1/events{/privacy}","received_events_url":"https://api.github.com/users/Tsuser1/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T18:18:32Z","updated_at":"2016-10-25T18:18:32Z","body":"Usage case in this instance is correct.\n"}}
{"actor":{"display_login":"Tsuser1"}}