zio fork 1.8.2b-zio10: rank tags match CS2-Tags, log rank changes to sa_rank_log
This commit is contained in:
parent
cf1090cbd2
commit
f46ccf18ce
5 changed files with 100 additions and 17 deletions
|
|
@ -286,7 +286,9 @@ public partial class CS2_SimpleAdmin
|
|||
if (DatabaseProvider == null) return;
|
||||
|
||||
var flagsList = flags.Split(',').Select(flag => flag.Trim()).ToList();
|
||||
_ = Instance.PermissionManager.AddAdminBySteamId(steamid, name, flagsList, immunity, time, globalAdmin);
|
||||
// zio: who did it, for the rank log (null caller is Console, which includes RCON).
|
||||
_ = Instance.PermissionManager.AddAdminBySteamId(steamid, name, flagsList, immunity, time, globalAdmin,
|
||||
caller?.SteamID ?? 0, caller?.PlayerName ?? "Console");
|
||||
|
||||
Helper.LogCommand(caller, $"css_addadmin {steamid} {name} {flags} {immunity} {time}");
|
||||
|
||||
|
|
@ -331,7 +333,8 @@ public partial class CS2_SimpleAdmin
|
|||
public void RemoveAdmin(CCSPlayerController? caller, string steamid, bool globalDelete = false, CommandInfo? command = null)
|
||||
{
|
||||
if (DatabaseProvider == null) return;
|
||||
_ = PermissionManager.DeleteAdminBySteamId(steamid, globalDelete);
|
||||
// zio: who did it, for the rank log (null caller is Console, which includes RCON).
|
||||
_ = PermissionManager.DeleteAdminBySteamId(steamid, globalDelete, caller?.SteamID ?? 0, caller?.PlayerName ?? "Console");
|
||||
|
||||
AddTimer(2, () =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue