TotalFreedom / TotalFreedomMod

A server modification for the TotalFreedom server
http://totalfreedom.me/
Other
45 stars 222 forks source link

Split up the Config.yml #320

Open Wild1145 opened 10 years ago

Wild1145 commented 10 years ago

Currently the config.yml is huge, nearly 300 lines long, and I personally think that its way to much for any plugin. I know that some plugins do have them longer, but I dont think its the best way to organize the configurable options of the plugins.

As such I suggest we split the config.yml up into separate yml files for stuff like the command blocking, announcement messages and stuff like that. The core configurable options, like server IP, MOTD and stuff like that should obviously remain, but a lot of stuff could be moved from the config.yml into another yaml file to keep everything clean and organized.

StevenLawson commented 10 years ago

I agree.

It probably wouldn't be too hard to write a custom input stream that could add an "include " directive, similar to how apache and php handle included config files. That way, everything could still be processed by the same facility.

StevenLawson commented 10 years ago

Needed for #317.

StevenLawson commented 10 years ago

I started working on a preprocessor: https://github.com/TotalFreedom/TotalFreedomMod/commit/6955de1d3b39d3682e74ac7b38a8ba34b0a69bb0

Thoughts so far?

JeromSar commented 9 years ago

@StevenLawson Oh dear, that looks fancy. But do we really need to split up the config? I know Essentials' configuration is much, much longer.