Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onEvent(SwingerEvent e) {
- if(e.getSource() == playButton) {
- AuthMineweb.setTypeConnection(TypeConnection.launcher);
- AuthMineweb.setUrlRoot("http://tyria-pvp.fr");
- AuthMineweb.setUsername(usernameField.getText());
- AuthMineweb.setPassword(passwordField.getText());
- try {
- AuthMineweb.start();
- } catch (PasswordWrongException e) {
- e.printStackTrace();
- return;
- } catch (DataEmptyException e) {
- e.printStackTrace();
- return;
- } catch (IOException e) {
- e.printStackTrace();
- return;
- }
- if(AuthMineweb.isConnected())
- {
- Thread t = new Thread() {
- @Override
- public void run()
- {
- //CONTINUE PROCESS
- }
- };t.start();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement