Skip to content

Commit

Permalink
создание сессии?
Browse files Browse the repository at this point in the history
  • Loading branch information
Schrodinger71 committed Jan 8, 2025
1 parent f85842c commit d430d35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Content.Server/Administration/ServerApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,10 @@ private async Task AdminConsoleAction(IStatusHandlerContext context, Actor actor
}
// ICommonSession? session;
var username = new NetUserId(new Guid($"{actor.Guid}"));
var username = new NetUserId({actor.Guid});

if (!_player.TryGetSessionById(username, out var session))
_playerManager.CreateAndAddSession(username, actor.Name);

if (_player.TryGetSessionById(username, out var session))
{
_sawmill.Info($"Session found: {session}");

Expand Down

0 comments on commit d430d35

Please sign in to comment.