Exemple #1
0
 public void InitializeCustomCommands()
 {
     List<string[]> commandsList = _db.GetAllCommands();
     foreach (string[] command in commandsList)
     {
         Types.CommandLevel level;
         if (Types.CommandLevel.TryParse(command[2], out level))
         {
             CustomCommand cmd = new CustomCommand(command[1], command[3], level);
             CustomCommands.Add(command[1].ToLower(), cmd);
         }
     }
 }