{"action":"created","issue":{"url":"https://api.github.com/repos/jeffry1829/MineChat/issues/3","labels_url":"https://api.github.com/repos/jeffry1829/MineChat/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jeffry1829/MineChat/issues/3/comments","events_url":"https://api.github.com/repos/jeffry1829/MineChat/issues/3/events","html_url":"https://github.com/jeffry1829/MineChat/issues/3","id":98319605,"number":3,"title":"CommandBind.java:onTalk() 0c7864be4264bdb96e51ee0cd8223690b7c2324c","user":{"login":"jeffry1829","id":6897769,"avatar_url":"https://avatars.githubusercontent.com/u/6897769?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffry1829","html_url":"https://github.com/jeffry1829","followers_url":"https://api.github.com/users/jeffry1829/followers","following_url":"https://api.github.com/users/jeffry1829/following{/other_user}","gists_url":"https://api.github.com/users/jeffry1829/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffry1829/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffry1829/subscriptions","organizations_url":"https://api.github.com/users/jeffry1829/orgs","repos_url":"https://api.github.com/users/jeffry1829/repos","events_url":"https://api.github.com/users/jeffry1829/events{/privacy}","received_events_url":"https://api.github.com/users/jeffry1829/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-31T05:36:10Z","updated_at":"2015-08-01T18:03:40Z","closed_at":null,"body":"log:\r\n  console:\r\n    At\r\n   In0\r\n   In1 [Ljava.lang.String;@5a543d41 |\r\n   In2\r\n   \\<player\\> yest\r\n   At\r\n   In0\r\n   In1 [Ljava.lang.String;@8b93ec5 |\r\n   In2\r\n   \\<player\\> test\r\n  playerlog:\r\n    N\r\n    \\<player\\> yest\r\n    N\r\n    \\<player\\> test\r\n\r\n\r\n\r\n\r\n\r\nbindfile就好像完全沒有作用 並且回傳給玩家為定義在bindfile裡的 \"N\" or \"y\" 等無意義字串\r\n明明println In1 + get[0] 卻沒有回傳一條正常的字串"},"comment":{"url":"https://api.github.com/repos/jeffry1829/MineChat/issues/comments/126942766","html_url":"https://github.com/jeffry1829/MineChat/issues/3#issuecomment-126942766","issue_url":"https://api.github.com/repos/jeffry1829/MineChat/issues/3","id":126942766,"user":{"login":"Shirohana","id":11359892,"avatar_url":"https://avatars.githubusercontent.com/u/11359892?v=3","gravatar_id":"","url":"https://api.github.com/users/Shirohana","html_url":"https://github.com/Shirohana","followers_url":"https://api.github.com/users/Shirohana/followers","following_url":"https://api.github.com/users/Shirohana/following{/other_user}","gists_url":"https://api.github.com/users/Shirohana/gists{/gist_id}","starred_url":"https://api.github.com/users/Shirohana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shirohana/subscriptions","organizations_url":"https://api.github.com/users/Shirohana/orgs","repos_url":"https://api.github.com/users/Shirohana/repos","events_url":"https://api.github.com/users/Shirohana/events{/privacy}","received_events_url":"https://api.github.com/users/Shirohana/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T18:03:40Z","updated_at":"2015-08-01T18:03:40Z","body":"Maybe you can try this\r\n\r\n```\r\n@Override\r\npublic void onTalk(String msg , Player player) {\r\n\ttry {\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(bindfile));\r\n\r\n\t\tString line;\r\n\t\twhile ( (line = br.readLine()) != null ){\r\n\t\t\tString[] pair = line.split(\"|\");\r\n\r\n\t\t\tif (pair[0].equalsIgnoreCase(msg)) {\r\n\t\t\t\tplayer.sendMessage(pair[1]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbr.close();\r\n\t} catch (Exception e) {}\r\n}\r\n```"}}