mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
fix issue with view stats and reset stats failing
fix issue with set level returning wrong error message if setting a client to the same level they're currently at update CoD4x parser version update nuget packages
This commit is contained in:
@ -1161,6 +1161,13 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
|
||||
public void ResetStats(EFClient client)
|
||||
{
|
||||
var stats = client.GetAdditionalProperty<EFClientStatistics>(CLIENT_STATS_KEY);
|
||||
|
||||
// the cached stats have not been loaded yet
|
||||
if (stats == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
stats.Kills = 0;
|
||||
stats.Deaths = 0;
|
||||
stats.SPM = 0;
|
||||
|
Reference in New Issue
Block a user