mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-08 00:38:38 +00:00
Cleaned Landing
This commit is contained in:
@@ -62,14 +62,7 @@ public final class Landing {
|
|||||||
Core.verbose("Validating account manager...");
|
Core.verbose("Validating account manager...");
|
||||||
AccountManager.validate();
|
AccountManager.validate();
|
||||||
|
|
||||||
if (getCredentials() != null && getCredentials().length == 2) {
|
if (username != null && password != null) {
|
||||||
if ((username = getCredentials()[0]) != null
|
|
||||||
&& (password = getCredentials()[1]) != null) {
|
|
||||||
new BotUI(username, password);
|
|
||||||
}
|
|
||||||
username = null;
|
|
||||||
password = null;
|
|
||||||
} else if (username != null && password != null) {
|
|
||||||
new BotUI(username, password);
|
new BotUI(username, password);
|
||||||
username = null;
|
username = null;
|
||||||
password = null;
|
password = null;
|
||||||
@@ -80,23 +73,6 @@ public final class Landing {
|
|||||||
new BotUI(null, null);
|
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) {
|
private static void parseArgs(String... args) {
|
||||||
for (int i = 0; i < args.length; i++) {
|
for (int i = 0; i < args.length; i++) {
|
||||||
final String arg = args[i].toLowerCase();
|
final String arg = args[i].toLowerCase();
|
||||||
|
|||||||
Reference in New Issue
Block a user