yae openworld but dialogs aren't triggered

This commit is contained in:
rafi1212122
2023-06-12 20:06:26 +07:00
parent f9e0aa8e1f
commit bfe8347610
26 changed files with 537 additions and 12 deletions

View File

@@ -95,6 +95,7 @@ namespace PemukulPaku.GameServer
try
{
Send(Packet.FromProto(new KeepAliveNotify() { }, CmdId.KeepAliveNotify));
LastServerKeepAlive = Global.GetUnixInSeconds();
}
catch
{
@@ -108,6 +109,9 @@ namespace PemukulPaku.GameServer
public void DisconnectProtocol()
{
if (Server.GetInstance().Sessions.GetValueOrDefault(Id) is null)
return;
Player.SaveAll();
c.Debug("Player data saved to database");
c.Warn($"{Id} disconnected");