Solved Commands on startup

Discussion in 'Plugin Requests' started by Akeno Himejima, Jan 29, 2018.

  1. Hello i was creating a new plugin thats seems pretty wel but i ran in a issue with the code basicly the plugin send Commands to Console at Server Startup Reason for this is for people that dont have acces to they .bat file or console or anywhere the basic concept is fully working with help of sami but i ran in the issue that server.description is not gonna work as he only takes the first word instead of the full description.

    perhaps anyone that could help ussing "" wont solve it as the config file thinks that it starting with a new command
    [DOUBLEPOST=1517195845][/DOUBLEPOST]@Wulf do u perhaps know sorry for the stupid question thought
     
  2. Wulf

    Wulf Community Admin

  3. i just checked them both out but neither of them solved the issue im having and they seem they have the same issue as wel except magic description but thats build different
    [DOUBLEPOST=1517197614][/DOUBLEPOST]what goes wrong = server.description: "Welcome"
     
  4. Wulf

    Wulf Community Admin

    No issues here, works just fine with spaces and no quotation marks. Hint: string.Join + args.
     
  5. {
    Config.Clear();
    List<string> lists = new List<string>();
    lists.Add("Command");
    SetConfig("General", "Command List", lists);
    SaveConfig();
    }
    [DOUBLEPOST=1517198097][/DOUBLEPOST]hmmm
     
  6. Wulf

    Wulf Community Admin

    The StartupCommands plugin does exactly what you want, and handles the arguments properly.
     
  7. ah yes i seen it hmm but for me i was just trying to learn more and the start up command has some features i wanted to leave out haha
    but ill have a look thought ^^
    thank u wulf
     
  8. Wulf

    Wulf Community Admin

    The only other "features" it has is the commands, which are optional. The only other thing it does is read from the config file and execute the commands on server startup. The plugin is a good example of how to handle it though.