- Partially implement tab switch

- Better support character switch
This commit is contained in:
Infi
2024-08-28 18:18:20 +02:00
parent 17ed40307c
commit f6531907a4
7 changed files with 35 additions and 5 deletions
+19
View File
@@ -92,6 +92,25 @@ public class ServerCore : IAsyncDisposable
Plugin.Log.Error(ex, "Sending channel switch over SSE failed.");
}
}
internal void SendNewLogin()
{
if (!HostContext.IsActive)
return;
try
{
Plugin.Framework.RunOnTick(async () =>
{
foreach (var eventServer in HostContext.EventConnections)
await HostContext.Processing.PrepareNewClient(eventServer);
});
}
catch (Exception ex)
{
Plugin.Log.Error(ex, "Preparing all clients after login failed.");
}
}
#endregion
public void InvalidateSessions()