Core v2.8.1c

So why not just create a “Core” folder in the config folder - so have config/Core/core.conf and config/Core/whatever.conf? In fact, Sponge provides a way to get a plugin specific folder for this very reason. That way, all the config items are still in the config folder within a Core specific subfolder - you have a central place for your plugin config, within the central place for configuration - I’d argue that you really shouldn’t be putting anything other than mods/plugins in the mods folder. Server owners aren’t necessarily going to look in the mods folder for configuration.

Look at this section of the config docs page - it tells you how to put your main conf file into a sub folder (using @DefaultConfig(sharedRoot = false)) - you should be able to then use this to get the central folder for your plugin and put all your config files there.

While I understand it’s your plugin and your choice, I really do urge you to consider using the config folder, and creating a Core folder within it - as the Sponge Docs suggest.

1 Like

Thanks for the suggestion. I’ll change that in the upcoming version. Also a good way to finally change the file structure of Core’s .conf files.

2 Likes

You should be placing all plugin configs in ./config/pluginname/. Do not store any configs in the root config folder as that will just cause clutter. Also, no configs should ever be placed in the mods folder, this isn’t CraftBukkit :stuck_out_tongue:

2 Likes

Was fixed by @Zidane

I added that! :wink: Core’s local sqlite database (if used) will be stored in config/core/data/core.db Pretty sure that’s the proper path to store it then. I just used Bukkit for so long it’s hard to completely switch to Sponge sometimes even if I like it much more already! :stuck_out_tongue:

1 Like

From what i understand, all you would have to do to actually add the worlds auto loading on startup is , of course, add a command to “disable” a world, which I’m sure is simple, and add into your database each world that is loaded by command. And on startup, you would just grab the list of worlds and run the function that the command triggers anyways. Thanks, and this is by far, the best Sponge mod I have actually used yet.

Thank you for the feedback! :blush:

It should be as simple as that:

http://spongepowered.github.io/SpongeAPI/ → WorldProperties → setLoadOnStartup(boolean state)

The odd thing about this is, that this is currently the way we go. That’s why I will have a look at it first before I create a complete new table just for worlds to load. :wink:

Strange, but ok! thanks for the plugin and thanks for responding so fast!
And one other thing, im not sure if you currently have, or are planning to add this, but will there or is there specific world options like difficulty, level, and stuff like that? or are you just going to keep it simple with the world system?

I definitely planned to add control over each world. (difficulty, mob/animal spawning, gamemode, xpboost(??), and much more) I will have a deeper look at this and add it within the next few versions! :yum:

2 Likes

i love you so much !
dont forget pvp , and build if its possible <33

1 Like

##Core v2.4.2c has been released:


Updated Core to be compatible with the latest Sponge version (686+)

Moved all files to …/config/core/
The files itself didnt change so you can just override the new files!

Added commands:

/jump
/world edit <world> <setting> <value>

Added permissions:

core.jump
core.world.edit.<world>.<setting>

Added worlds.conf file: (Preparation for the big multiworld update)

version=1
worlds {
    DIM-1 {
        animals=true
        build=true
        difficulty=easy
        gamemode=survival
        hunger=true
        interact=true
        invincible=false
        monsters=true
        private=false
        pvp=true
        spawn {
            pitch=0
            x=0
            y=64
            yaw=0
            z=0
        }
        time=normal
        weather=normal
    }
    DIM1 {
        animals=true
        build=true
        difficulty=easy
        gamemode=survival
        hunger=true
        interact=true
        invincible=false
        monsters=true
        private=false
        pvp=true
        spawn {
            pitch=0
            x=0
            y=50
            yaw=0
            z=0
        }
        time=normal
        weather=normal
    }
    world {
        animals=true
        border=0
        build=true
        difficulty=easy
        gamemode=survival
        hunger=true
        interact=true
        invincible=false
        invulnerability=false
        monsters=false
        private=false
        pvp=true
        spawn {
            pitch=0
            x=0
            y=0
            yaw=0
            z=0
        }
        time=normal
        weather=normal
    }
}
1 Like

Can we create a flat world? with 1xgrass 100xEarth 1xAdminium.

With this website that lets you create a models.

model
3;13minecraft:bedrock,50minecraft:stone,20*minecraft:dirt,minecraft:grass;1;

with the control.

/world create <name> <3;13*minecraft:bedrock,50*minecraft:stone,20*minecraft:dirt,minecraft:grass;1;> <gamemode> 

Import created world solo?.

I’ll have a look later today if this is possible. :wink:

And I don’t really know what you mean by saying “Import created world solo?” :smile: If you mean that you want a function to import your worlds, thats another thing I have to take a closer look at.

Thank you.
In fact I mean create a world in single player mode to import it on my server and add a command like.

/world import <name> <environment> <gamemode>

Thank you for this care is future changes I would like to import worlds that is on another server.

It would be posible to create a portal to move the world to another as do multiverse?.

Thank you in advance.

Firstly, markdown ate your <placeholders> because they have angle brackets. Surround them in `these` so they appear.

Secondly, part of what you ask — singleplayer worlds running on a server — is impossible without a very tricky (not to mention user-specific) remote filesystem hack. (Oh, and it’d be slow as all hell.) The worlds must exist on the server’s filesystem already. It’s trivial to upload worlds over (S)FTP, so just do that instead =)

Thanks for the information.
I just want to import the worlds that I put in the dossier and with a world of style command.

/world import THE WORLD

When I create a world in single player 1.8 a flat world and that I place in the world via ftp folder I restart my server.

And as I type / world list I see the worlds default but not the new world that I place in world.

Before multiverse with Bukkit and to take into account the new world that I had put ftp Cliff type

/mv import NOM normal

To take the new world

Oh my gad i love you so much <3

1 Like

One issue I have noticed with Multiworlds in Core, which may be caused by a shortcoming in the API:
All Worlds seem to share the same time. Set it to day in one, and all get set to day, and so on.
This was an issue with the original Multiverse plugin for Bukkit too (I know, I’m the guy who reported it way back then).

When it is possible, having separate timezones per world would be a nice feature.

Thats exactly what I’ll have a look at. As soon as there is a valid solution in Sponge to import worlds I’ll definitely add this function. :wink:

@Inscrutable

I’ve added the argument [world] to /time and /weather in the latest version:

/time <day|night|sunrise|sunset> [world]
/weather <sun|rain|storm> [world]

Thanks for reporting this though! :yum:

2 Likes

Seems like a better idea to default to changing the world only, but include an argument to do it for all.