rendered paste body if (arg.length == 3) { try { SkyNetClientImpl.myPersonality = SkyNetClientImpl.manager.login(arg[1], DSLabUtils.hashTextWithSHA(arg[2]), SkyNetClientImpl.listener); if(SkyNetClientImpl.myPersonality == null) { throw new BuddyNotFoundException("not found"); } loggedIn = true; System.out.println("SkyNet says: user " + SkyNetClientImpl.myPersonality.getNickname() + " successfully logged in!"); } catch (BuddyNotFoundException bnfe) { throw bnfe; } catch (RemoteException re) { throw new SkyNetException(re.getMessage()); } } else { throw new SkyNetCommandException("login", "usage: login <nickname> <password>"); }