//====
        #endregion

        void ExecuteCommand(string input)
        {
            if (!input.StartsWith(prefix))
            {
                return;
            }

            input = input.Remove(0, prefix.Length);
            string[] inputSplit = input.Split(' ');
            string   command    = inputSplit[0];

            string[] args = inputSplit.Skip(1).ToArray();

            Console.Log(ConsoleCommandsDatabase.ExecuteCommand(command, args));
        }
示例#2
0
 public static string ExecuteCommand(string command, params string[] args)
 {
     return(ConsoleCommandsDatabase.ExecuteCommand(command, args));
 }