1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

add level color coding to target on penalty list for issue #265

This commit is contained in:
RaidMax
2022-10-13 10:41:51 -05:00
parent cbe3bb9269
commit 4cf62b73f1
3 changed files with 6 additions and 3 deletions

View File

@ -7,6 +7,7 @@ namespace SharedLibraryCore.Dtos
public class PenaltyInfo : SharedInfo
{
public string OffenderName { get; set; }
public Permission OffenderLevel { get; set; }
public int OffenderId { get; set; }
public ulong OffenderNetworkId { get; set; }
public string OffenderIPAddress { get; set; }
@ -38,4 +39,4 @@ namespace SharedLibraryCore.Dtos
public string AdditionalPenaltyInformation =>
$"{(!string.IsNullOrEmpty(AutomatedOffense) ? $" ({AutomatedOffense})" : "")}{(IsEvade ? $" ({Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_PENALTY_EVADE"]})" : "")}";
}
}
}

View File

@ -117,6 +117,7 @@ namespace SharedLibraryCore.Services
AutomatedOffense = _penalty.AutomatedOffense,
OffenderId = _penalty.OffenderId,
OffenderName = _penalty.Offender.CurrentAlias.Name,
OffenderLevel = _penalty.Offender.Level,
PunisherId = _penalty.PunisherId,
PunisherName = _penalty.Punisher.CurrentAlias.Name,
PunisherLevel = _penalty.Punisher.Level,