Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onStart() {
- new botGui().setVisible(true);
- super.onStart();
- JsonObject accountsJsonObject = fromFileToJsonObject("C:\\Users\\guilh\\Documents\\RSPeer\\scripts\\configAccounts.json");
- JsonArray accountsArrayJO = accountsJsonObject.getAsJsonArray("accounts");
- JsonObject accountJO= accountsArrayJO.get(1).getAsJsonObject();
- String loginCred = accountJO.get("login").getAsString();
- String passwordCred = accountJO.get("password").getAsString();
- Log.fine("Starting Bot with bot: ");
- Log.fine(loginCred);
- Log.fine(passwordCred);
- Login.enterCredentials(loginCred,passwordCred);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement