This commit is contained in:
Aviu00
2024-01-17 11:05:27 +03:00
parent 50565ef694
commit 80c769fc62

View File

@@ -8,12 +8,14 @@ using Content.Server.Database;
using Content.Server.UtkaIntegration; using Content.Server.UtkaIntegration;
using Content.Server.White; using Content.Server.White;
using Content.Shared.CCVar; using Content.Shared.CCVar;
using Content.Shared.Database;
using Content.Shared.Roles; using Content.Shared.Roles;
using Robust.Server.Player; using Robust.Server.Player;
using Robust.Shared.Configuration; using Robust.Shared.Configuration;
using Robust.Shared.Console; using Robust.Shared.Console;
using Robust.Shared.Enums; using Robust.Shared.Enums;
using Robust.Shared.Network; using Robust.Shared.Network;
using Robust.Shared.Player;
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
namespace Content.Server.Administration.Managers; namespace Content.Server.Administration.Managers;
@@ -171,7 +173,10 @@ public sealed class RoleBanManager
targetHWid, targetHWid,
DateTimeOffset.Now, DateTimeOffset.Now,
expires, expires,
null,
TimeSpan.Zero, // IDK what it means
reason, reason,
NoteSeverity.High,
player, player,
null, null,
role, role,
@@ -232,7 +237,7 @@ public sealed class RoleBanManager
serverName = "unknown"; serverName = "unknown";
} }
var player = shell.Player as IPlayerSession; var player = shell.Player;
var banDef = new ServerRoleBanDef( var banDef = new ServerRoleBanDef(
null, null,
targetUid, targetUid,
@@ -240,7 +245,10 @@ public sealed class RoleBanManager
targetHWid, targetHWid,
DateTimeOffset.Now, DateTimeOffset.Now,
expires, expires,
null,
TimeSpan.Zero, // IDK what it means
reason, reason,
NoteSeverity.High,
player?.UserId, player?.UserId,
null, null,
role, role,