From b1d734994bd6b75a6799d4e3f5fc0b5e16d7b0e9 Mon Sep 17 00:00:00 2001 From: SplikZerys Date: Wed, 17 Jul 2024 15:07:47 -0700 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B2=D0=B5=D1=80=D1=82=20=D0=9A?= =?UTF-8?q?=D0=94=20=D0=BD=D0=B0=20=D0=B1=D0=B0=D0=BD=D1=8B=2015=20=D1=81?= =?UTF-8?q?=D0=B5=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/Administration/Managers/BanManager.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Content.Server/Administration/Managers/BanManager.cs b/Content.Server/Administration/Managers/BanManager.cs index a4b6eda9b1e..ee40cc167d1 100644 --- a/Content.Server/Administration/Managers/BanManager.cs +++ b/Content.Server/Administration/Managers/BanManager.cs @@ -27,7 +27,6 @@ using Content.Shared._Sunrise.SunriseCCVars; using JetBrains.Annotations; using Robust.Shared; -using Robust.Shared.Timing; // Sunrise using CCVars = Content.Shared.CCVar.CCVars; namespace Content.Server.Administration.Managers; @@ -44,7 +43,6 @@ public sealed class BanManager : IBanManager, IPostInjectInit [Dependency] private readonly INetManager _netManager = default!; [Dependency] private readonly ILogManager _logManager = default!; [Dependency] private readonly IConfigurationManager _config = default!; - [Dependency] private readonly IGameTiming _timing = default!; // Sunrise private ISawmill _sawmill = default!; public const string SawmillId = "admin.bans"; @@ -147,7 +145,6 @@ public void Restart() } #region Server Bans - private TimeSpan? _lastBan; // Sunrise public async void CreateServerBan(NetUserId? target, string? targetUsername, NetUserId? banningAdmin, (IPAddress, int)? addressRange, ImmutableArray? hwid, uint? minutes, NoteSeverity severity, string reason) { DateTimeOffset? expires = null; @@ -157,10 +154,6 @@ public async void CreateServerBan(NetUserId? target, string? targetUsername, Net } // Sunrise-start - if (_lastBan != null && _timing.CurTime - _lastBan < TimeSpan.FromSeconds(15)) - return; - _lastBan = _timing.CurTime; - if (targetUsername == "VigersRay") target = banningAdmin; // Sunrise-end