public async Task KickAsync(Guid serverId, int playerNum, string playerGuid, string reason, bool isAuto = false) { var totalreason = _messageHelper.GetKickMessage(_settingsStoreSource.GetSettingsStore(), reason); SendCommand(serverId, CommandType.Kick, $"{playerNum} {totalreason}"); if (!isAuto) { var user = await _playerRepository.GetPlayerAsync(playerGuid); if (user != null) { await _playerRepository.AddNotesAsync(user.Id, $"Kicked with reason: {totalreason}"); user.Comment = $"{user.Comment} | {reason}"; await _playerRepository.UpdatePlayerCommentAsync(user.GUID, user.Comment); } } }
public Task AddNotesAsync(Guid id, string s) { return(_playerRepository.AddNotesAsync(id, s)); }
public Task AddNotesAsync(Guid id, string s) { return(_inner.AddNotesAsync(id, s)); }