-removes flag penality when unflagging a player

-fixed 'just now ago' on webfront
-webfront playerlist level colors are hidden to non admin users
-tempban length can now be specified (<int>m, <int>h, <int>d,  <int>y)
This commit is contained in:
RaidMax
2017-08-23 17:29:48 -05:00
parent 6a94882d20
commit 9227335d25
18 changed files with 221 additions and 157 deletions

View File

@ -98,6 +98,10 @@ namespace Welcome_Plugin
public async Task OnTickAsync(Server S)
{
return;
// TODO: check if this works
int MaxPing = (await S.GetDvarAsync<int>("sv_maxping")).Value;
if (MaxPing == 0)
@ -144,12 +148,12 @@ namespace Welcome_Plugin
}
PlayerPings.Add(E.Origin.DatabaseID, 1.0f);
//PlayerPings.Add(E.Origin.DatabaseID, 1.0f);
}
if (E.Type == Event.GType.Disconnect)
{
PlayerPings.Remove(E.Origin.DatabaseID);
//PlayerPings.Remove(E.Origin.DatabaseID);
}
}
}