Skip to content

Commit

Permalink
update CmlLibCoreSample
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaBs committed Jun 2, 2021
1 parent fe8aae0 commit 461e41b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CmlLibCoreSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ static void Main()

// There are two login methods, one is using mojang email and password, and the other is using only username
// Choose one which you want.
//session = p.PremiumLogin(); // Login by mojang email and password
session = p.OfflineLogin(); // Login by username
session = p.PremiumLogin(); // Login by mojang email and password
//session = p.OfflineLogin(); // Login by username

// log login session information
Console.WriteLine("Success to login : {0} / {1} / {2}", session.Username, session.UUID, session.AccessToken);

// Launch
//p.Start(session);
p.StartAsync(session).GetAwaiter().GetResult();
p.Start(session);
//p.StartAsync(session).GetAwaiter().GetResult();
}

MSession PremiumLogin()
Expand Down

0 comments on commit 461e41b

Please sign in to comment.