This commit is contained in:
Trever Fischer 2012-02-27 19:18:19 -05:00
parent cd4f8fc793
commit 4c91b5d749

View File

@ -88,6 +88,7 @@ public class JoinListener extends PlayerListener {
public String[] fetchMOTD(String user) throws IOException, MalformedURLException, JSONException { public String[] fetchMOTD(String user) throws IOException, MalformedURLException, JSONException {
URL motdService = new URL(m_url+"motd/"+user); URL motdService = new URL(m_url+"motd/"+user);
log.info("Fetching MOTD for "+user+" from "+motdService);
HttpURLConnection conn = (HttpURLConnection)motdService.openConnection(); HttpURLConnection conn = (HttpURLConnection)motdService.openConnection();
BufferedInputStream in = new BufferedInputStream(conn.getInputStream()); BufferedInputStream in = new BufferedInputStream(conn.getInputStream());
String jsonStr; String jsonStr;