Ejemplo n.º 1
0
        private static AuthResult BuildOfflineResult(string username)
        {
            return(new AuthResult
            {
                SelectedProfile
                    = new AuthUserProfile {
                        Name = username, Id = CryptUtil.GetStringMD5(username)
                    },

                ClientToken = CryptUtil.Guid,
                AccessToken = CryptUtil.Guid,
                UserType = "mojang",
                IsSuccessful = true,
            });
        }