{"action":"opened","issue":{"url":"https://api.github.com/repos/ForgeEssentials/ForgeEssentialsMain/issues/1297","labels_url":"https://api.github.com/repos/ForgeEssentials/ForgeEssentialsMain/issues/1297/labels{/name}","comments_url":"https://api.github.com/repos/ForgeEssentials/ForgeEssentialsMain/issues/1297/comments","events_url":"https://api.github.com/repos/ForgeEssentials/ForgeEssentialsMain/issues/1297/events","html_url":"https://github.com/ForgeEssentials/ForgeEssentialsMain/issues/1297","id":57767400,"number":1297,"title":"Better support for nickname-IRC mappings","user":{"login":"luacs1998","id":1886269,"avatar_url":"https://avatars.githubusercontent.com/u/1886269?v=3","gravatar_id":"","url":"https://api.github.com/users/luacs1998","html_url":"https://github.com/luacs1998","followers_url":"https://api.github.com/users/luacs1998/followers","following_url":"https://api.github.com/users/luacs1998/following{/other_user}","gists_url":"https://api.github.com/users/luacs1998/gists{/gist_id}","starred_url":"https://api.github.com/users/luacs1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luacs1998/subscriptions","organizations_url":"https://api.github.com/users/luacs1998/orgs","repos_url":"https://api.github.com/users/luacs1998/repos","events_url":"https://api.github.com/users/luacs1998/events{/privacy}","received_events_url":"https://api.github.com/users/luacs1998/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-16T05:48:56Z","updated_at":"2015-02-16T05:48:56Z","closed_at":null,"body":"> Current idea (in IRCChatFormatter):\r\n\r\n>´´´\r\n>private static Map nickMap = new TreeMap(String.CASE_INSENSITIVE_ORDER);\r\n>private static Map nickReverseMap = new TreeMap(String.CASE_INSENSITIVE_ORDER);\r\n>public static String getPlayerIRCName(EntityPlayer player);\r\n>public static String getPlayerIRCName(String playerName);\r\n>public static String getIRCPlayerName(String ircName);\r\n>public static EntityPlayer getIRCPlayer(String ircName);\r\n´´´\r\n\r\n\r\n>Every nick will be registered in nickMap as \"c0nnexX\",\"my Fancy Name\" , and nickReverseMap as \"My Fane Name\",\"c0nnexX\". \r\nnickMap is persisted to Disc, to prevent faking someone else. No entry mean no nick used.\r\nWhenever anything comes goes to IRC (e.g. login/logout etc) the nick will be exchanged.\r\nWhen a msg comes in from irc, the user will be searched via the reverseMap."}}