Martan21's Avatar
Member
Level 1 New Network
3

Forum Posts

1 - 1 of 1

    1
    02/17/2014 10:06 am
    Level 1 : New Network
    Martan21
    Martan21's Avatar
    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 of 1

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome