mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-19 02:51:51 +00:00
Admin immunity + Discord
- Fixed command logging + small refactor - Fixed admin immunity - Separated penalty webhook - More customizable penalty webhook
This commit is contained in:
14
Events.cs
14
Events.cs
@@ -44,9 +44,7 @@ public partial class CS2_SimpleAdmin
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
_getIpTryCount = 0;
|
||||
|
||||
|
||||
var address = $"{ipAddress}:{ConVar.Find("hostport")?.GetPrimitiveValue<int>()}";
|
||||
var hostname = ConVar.Find("hostname")!.StringValue;
|
||||
|
||||
@@ -106,6 +104,8 @@ public partial class CS2_SimpleAdmin
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
_getIpTryCount = 0;
|
||||
}
|
||||
|
||||
[GameEventHandler]
|
||||
@@ -370,11 +370,17 @@ public partial class CS2_SimpleAdmin
|
||||
return HookResult.Handled;
|
||||
}
|
||||
|
||||
public void OnMapStart(string mapName)
|
||||
private void OnMapStart(string mapName)
|
||||
{
|
||||
if (Config.ReloadAdminsEveryMapChange && _serverLoaded && ServerId != null)
|
||||
AddTimer(3.0f, () => ReloadAdmins(null));
|
||||
|
||||
AddTimer(34, () =>
|
||||
{
|
||||
if (!_serverLoaded)
|
||||
OnGameServerSteamAPIActivated();
|
||||
});
|
||||
|
||||
var path = Path.GetDirectoryName(ModuleDirectory);
|
||||
if (Directory.Exists(path + "/CS2-Tags"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user