Ejemplo n.º 1
0
        private void SendSuggestions(string input)
        {
            var suggestions = CommandRegistry.GiveSuggestions(input);

            if (suggestions.Count == 0)
            {
                SendPacket(RconPacketType.Suggestions, new Dictionary <string, string>()
                {
                });
            }
            else
            {
                SendPacket(RconPacketType.Suggestions, new Dictionary <string, string>()
                {
                    { "suggestions", JsonConvert.SerializeObject(suggestions) }
                });
            }
        }