Advertisement
Guest User

Untitled

a guest
Jun 25th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. package me.callofcaos.lorien.altmanager;
  2.  
  3. import net.minecraft.util.Session;
  4. import me.callofcaos.lorien.Wrapper;
  5.  
  6.  
  7. /*
  8. * Author: Opim10
  9. * Version: 1
  10. * Use: Login to Minecraft with Yggdrasil;
  11. */
  12.  
  13. public class YggdrasilAuthenticator {
  14.  
  15. public YggdrasilPayload Payload = new YggdrasilPayload();
  16. public String Username;
  17. public String Password;
  18.  
  19. public YggdrasilAuthenticator(String Username, String Password)
  20. {
  21. this.Username = Username;
  22. this.Password = Password;
  23.  
  24. if(Password != "" && Password != null)
  25. {
  26. Session AuthResponse = Payload.loginPassword(this.Username, this.Password);
  27. Wrapper.getInstance().getMinecraft().setSession(AuthResponse);
  28. }else
  29. {
  30. Session AuthResponseCrack = Payload.loginCrack(this.Username);
  31. Wrapper.getInstance().getMinecraft().setSession(AuthResponseCrack);
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement