1. How could we do something like:
    Code:
    void CreateDefaultConfig()
    {
         commands.Test = "test"; 
    }[ChatCommand(commands.Test)] //make ChatCommand read commands.Test or whatever is the option gave by you guys, so it will be possible to let the server owner choose its own commands.void cmdTest(BasePlayer player, string command, string[] args)
    {
          //some function here
    }       
    [DOUBLEPOST=1424439601][/DOUBLEPOST]With a Static it works:

    Code:
    public static class Global
            {   
                public const string CommandTest = "test"; //change commands.Test from the ChatCommand to CommandTest seems to work! -- now I need to know how to store the "test" command from the config file inside this var
            }
    
     
  2. You can try with than:

    On Loaded:
    Code:
    void Loaded()
    {
        LoadConfig();
        ReadConfig();
        LoadAuthLevelsData();    Command command = Interface.GetMod().GetLibrary<Command>("Command");
        command.AddChatCommand(YOUR_CONFIG_VAR_HERE, (Plugin)this, "MyCommand");
    }
    On your command method:
    Code:
    [HookMethod("MyCommand")]
    void MyCommand(BasePlayer player, string cmd, string[] args)
    {
         //Anything here
    }