tür logs

This commit is contained in:
hydrant
2021-06-02 00:13:15 +02:00
parent e0879eb330
commit 637ac0bd43

View File

@@ -1,9 +1,11 @@
using System.Collections.Generic;
using System.Linq;
using GTANetworkAPI;
using Microsoft.Extensions.Logging;
using ReallifeGamemode.Database.Entities;
using ReallifeGamemode.Database.Models;
using ReallifeGamemode.Server.Extensions;
using ReallifeGamemode.Server.Log;
using ReallifeGamemode.Server.Types;
/**
@@ -16,6 +18,8 @@ namespace ReallifeGamemode.Server.Managers
{
public class DoorManager : Script
{
private static readonly ILogger logger = LogManager.GetLogger<DoorManager>();
private static Dictionary<int, NetHandle> _doorColShapes = new Dictionary<int, NetHandle>();
public static void LoadDoors()
@@ -58,6 +62,8 @@ namespace ReallifeGamemode.Server.Managers
}
d.Locked = !d.Locked;
string logMsg = d.Locked ? "locked" : "unlocked";
logger.LogInformation("Player {0} {1} the door {2} ({3})", player.Name, logMsg, d.Name, d.Id);
string notStr = d.Name + " " + (d.Locked == false ? "~g~auf" : "~r~ab") + "geschlossen";