Configurable Settings Options Per World
MapleFighter opened this issue ยท 12 comments
Since BattleKits should have everything configurable, config options should be configurable too! Allow all options in the config to be modified per world. This way Multi-world servers can utilize the great features BattleKits.
@MapleFighter It was np98765's idea, and it would probably neaten up the config quite a bit.
Proposed structure:
global.yml -- overriden by world_name.yml files (which the user must create)
kits.yml -- All kits in a nice compact file
I like the idea of global settings, with per-world overrides. I'm sure that many people using this plugin have set up a KitPvP-only world, and don't want the features throughout their entire server.
The dataFolder should look something like:
config.yml
kits.yml
global.yml
.yml for each world
As for the kits.yml, I've had the idea for a while but haven't actually gotten around to implementing it. At this point, I doubt I'll get to do it, but if I have any free moments over the weekend I can start/edit/finish whatever progress there is.
I've started to do this, unsure about how to proceed with world-specific configs though. I'd prefer to stick it all in the global.yml file:
world-settings:
world_nether:
#some settings
world_the_end:
#more settings
Outsource testing to community: http://dev.bukkit.org/server-mods/battlekits/?comment=169
Kinda works, got a massive issue in that all gets are returning null. Not sure why ๐ข