login logout logs
This commit is contained in:
@@ -17,6 +17,7 @@ using ReallifeGamemode.Server.Report;
|
||||
using ReallifeGamemode.Server.Factions.Medic;
|
||||
using ReallifeGamemode.Server.Inventory.Interfaces;
|
||||
using ReallifeGamemode.Server.Inventory;
|
||||
using ReallifeGamemode.Database.Entities.Logs;
|
||||
|
||||
/**
|
||||
* @overview Life of German Reallife - Event Login (Login.cs)
|
||||
@@ -40,6 +41,19 @@ namespace ReallifeGamemode.Server.Events
|
||||
return;
|
||||
}
|
||||
|
||||
var logEntry = new LoginLogoutLogEntry()
|
||||
{
|
||||
LoginLogout = false,
|
||||
User = user,
|
||||
PlayerId = player.Handle.Value,
|
||||
Username = player.Name,
|
||||
SocialClubName = player.SocialClubName,
|
||||
IpAddress = player.Address,
|
||||
Time = DateTime.Now,
|
||||
};
|
||||
|
||||
saveUser.LoginLogoutLogs.Add(logEntry);
|
||||
|
||||
if (type == DisconnectionType.Left)
|
||||
{
|
||||
NAPI.Util.ConsoleOutput(player.Name + " left");
|
||||
|
||||
Reference in New Issue
Block a user