Member
Level 1
New Network
3

Forum Posts

1 - 1 of 1

    Martan21
    02/17/2014 10:06 am
    Level 1 : New Network
    this code will verify your account in minecraft database, enjoy it and you have to agree, that i'm awesome with putting this here :

    private string[] verifyUser(string username, string password, out bool authed)
    {
    HttpWebResponse response;
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("login.minecraft.net/?user=" + username + "&password=" + password + "&version=13");
    try
    {
    response = (HttpWebResponse)request.GetResponse();
    }
    catch (Exception)
    {
    authed = false;
    return null;
    }
    string str = new StreamReader(response.GetResponseStream()).ReadToEnd();
    if (str.Contains(":") == false)
    {
    authed = false;
    this.label4.Text = str;
    return null;
    }
    authed = true;
    return str.Split(new char[] { ':' });
    }

    then just make it like string and make it required for start minecraft
    1

1 - 1 of 1

Welcome