sashman/MC_tehboyz_survival — pull request #4 by hugecannon (2012-05-14 20:07:15+00:00)
Title: Config file

Added in config file reading functionality.

Looks for config file at "plugins/survival.config"

If file isn't there then it creates one and writes default key/vals to it.

If a file is present then it reads in any valid lines with valid keys and assigns the values internally. If keys are missing from the original config file then they are added and default values are written.

Some verification on the inputs needs to be done though. e.g. someone could write "MAX_PLAYERS poop" and it would crash trying to get an integer from 'poop'.