BattleKits

BattleKits

250k Downloads

Configurable Settings Options Per World

MapleFighter opened this issue ยท 12 comments

commented

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.

commented

Yea, kits.yml would be a lot better than in the config.

commented

@MapleFighter It was np98765's idea, and it would probably neaten up the config quite a bit.

commented

Proposed structure:
global.yml -- overriden by world_name.yml files (which the user must create)
kits.yml -- All kits in a nice compact file

commented

Go for it :)

commented

Actually, Jenkins has failed. One min

commented

Fixed. Check your PM ๐Ÿ˜„

commented

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.

commented

7a781a3

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
commented
commented

NIce, can I help test it out?

commented

91dfa57

Kinda works, got a massive issue in that all gets are returning null. Not sure why ๐Ÿ˜ข

commented

Fixed.