Eg: QSAdminAPI qsAdminApi = new QSAdminAPI("127.0.0.1", 9080); if(qsAdminApi.logon()) { System.out.println("Logged in"); String info = qsAdminApi.sendCommand("info server"); System.out.println("Info on Server :\n"+info); qsAdminApi.logoff(); } else { System.out.println("Bad Login"); qsAdminApi.close(); }
QSAdminAPI qsAdminApi = new QSAdminAPI("127.0.0.1", 9080); if(qsAdminApi.logon()) { System.out.println("Logged in"); String info = qsAdminApi.sendCommand("info server"); System.out.println("Info on Server :\n"+info); qsAdminApi.logoff(); } else { System.out.println("Bad Login"); qsAdminApi.close(); }