Example #1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            Log.Out("btnLogin_Click");

            if (!string.IsNullOrEmpty(tbAccount.Text))
            {
                Account account = null;
                account       = new Account(tbAccount.Text);
                account.IGN   = tbAccount.Text;
                account.Token = "HAX";

                if (account != null)
                {
                    Minecraft.Launch(Settings.JavaPath, Settings.JavaOptions, account.IGN, account.Token, Settings.UseJavaDebug);
                }
            }
            else
            {
                Log.Warn("Username is required");
            }
        }