Show ban and note count in ahelp window (#15328)
This commit is contained in:
@@ -124,6 +124,11 @@ public sealed class AdminNotesManager : IAdminNotesManager, IPostInjectInit
|
||||
return await _db.GetAdminNotes(player);
|
||||
}
|
||||
|
||||
public async Task<int> CountNotes(Guid player)
|
||||
{
|
||||
return await _db.CountAdminNotes(player);
|
||||
}
|
||||
|
||||
public async Task<string> GetPlayerName(Guid player)
|
||||
{
|
||||
return (await _db.GetPlayerRecordByUserId(new NetUserId(player)))?.LastSeenUserName ?? string.Empty;
|
||||
|
||||
@@ -20,5 +20,6 @@ public interface IAdminNotesManager
|
||||
Task DeleteNote(int noteId, IPlayerSession deletedBy);
|
||||
Task ModifyNote(int noteId, IPlayerSession editedBy, string message);
|
||||
Task<List<AdminNote>> GetNotes(Guid player);
|
||||
Task<int> CountNotes(Guid player);
|
||||
Task<string> GetPlayerName(Guid player);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user