Ejemplo n.º 1
0
        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);
                }
            }
        }
Ejemplo n.º 2
0
 public Task AddNotesAsync(Guid id, string s)
 {
     return(_playerRepository.AddNotesAsync(id, s));
 }
Ejemplo n.º 3
0
 public Task AddNotesAsync(Guid id, string s)
 {
     return(_inner.AddNotesAsync(id, s));
 }