mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-12-06 19:01:44 +00:00
Cleaned Landing
This commit is contained in:
1 parent
6bb0545f0c
commit
38a5910ad0
1 file changed
+1
-25
@@ -62,14 +62,7 @@ public final class Landing {
|
||||
Core.verbose("Validating account manager...");
|
||||
AccountManager.validate();
|
||||
|
||||
if (getCredentials() != null && getCredentials().length == 2) {
|
||||
if ((username = getCredentials()[0]) != null
|
||||
&& (password = getCredentials()[1]) != null) {
|
||||
new BotUI(username, password);
|
||||
}
|
||||
username = null;
|
||||
password = null;
|
||||
} else if (username != null && password != null) {
|
||||
if (username != null && password != null) {
|
||||
new BotUI(username, password);
|
||||
username = null;
|
||||
password = null;
|
||||
@@ -80,23 +73,6 @@ public final class Landing {
|
||||
new BotUI(null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO Returns an array of string containing only the username and password
|
||||
*
|
||||
* @return String array with username and password
|
||||
*/
|
||||
private static String[] getCredentials() {
|
||||
// try {
|
||||
// BufferedReader bufferedReader = WebUtil.getReader(new URL(
|
||||
// Configuration.GET_PASSWORD));
|
||||
// if (bufferedReader.readLine() != null) {
|
||||
// }
|
||||
// } catch (IOException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
private static void parseArgs(String... args) {
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
final String arg = args[i].toLowerCase();
|
||||
|
||||
Reference in new issue
Block a user