Mineserver Community

Mineserver => Discussion => Topic started by: Matt - Kerplunc on December 13, 2010, 11:29:20 am



Title: Piping Configuration Options?
Post by: Matt - Kerplunc on December 13, 2010, 11:29:20 am
Hey Guys,
The server is looking fantastic. Any plans on offering the ability to pipe configurations through the execution of the file?
Like
./mineserver +motd "Welcome!" +port 25566 +ip 192.168.1.1
etc. etc.

Thanks! Keep up the good work!


Title: Re: Piping Configuration Options?
Post by: deoxxa on December 13, 2010, 04:07:33 pm
That's definitely possible, but the new config system (https://github.com/deoxxa/config-c--) (which I'm in the process of dropping in right now) might make it unnecessary. Check back in a few hours!


Title: Re: Piping Configuration Options?
Post by: Matt - Kerplunc on December 14, 2010, 11:01:35 am
That's definitely possible, but the new config system (https://github.com/deoxxa/config-c--) (which I'm in the process of dropping in right now) might make it unnecessary. Check back in a few hours!

Well it's nice to have if you are hosting multiple servers on the same environment, it would remove the need for virtualization. With a +port 25565 and a +ip etc.


Title: Re: Piping Configuration Options?
Post by: Matt - Kerplunc on February 08, 2011, 05:43:50 am
Been a while, any idea if this is functionality that is going to be added? Or is it going to need a plugin to be integrated?


Title: Re: Piping Configuration Options?
Post by: Matt - Kerplunc on February 10, 2011, 02:26:03 am
Well last night we just decided to build it for ourselves. I've attached the mineserver.cpp file

If you guys want to add it in to the mainline server then be my guest :)


Usage formatting is
./mineserver +[cfg entry]=[setting]
example
./mineserver +net.ip=127.0.0.1 +net.port=25565 +system.user_limit=25


Title: Re: Piping Configuration Options?
Post by: Fador on February 15, 2011, 09:17:45 pm
Sorry for the delay, but your code is now merged, thanks! =)