User lower case for world name.

This commit is contained in:
tastybento 2019-05-15 09:32:48 -07:00
parent 79d89bfe84
commit 0c03eb1a97
3 changed files with 5 additions and 5 deletions

View File

@ -78,7 +78,7 @@ public class BSkyBlock extends GameModeAddon {
@Override
public void createWorlds() {
String worldName = settings.getWorldName();
String worldName = settings.getWorldName().toLowerCase();
if (getServer().getWorld(worldName) == null) {
log("Creating BSkyBlock world ...");
}

View File

@ -46,9 +46,9 @@ public class Settings implements WorldSettings {
private String friendlyName = "BSkyBlock";
@ConfigComment("Name of the world - if it does not exist then it will be generated.")
@ConfigComment("It acts like a prefix for nether and end (e.g. BSkyBlock_world, BSkyBlock_world_nether, BSkyBlock_world_end)")
@ConfigComment("It acts like a prefix for nether and end (e.g. bskyblock_world, bskyblock_world_nether, bskyblock_world_end)")
@ConfigEntry(path = "world.world-name")
private String worldName = "BSkyBlock_world";
private String worldName = "bskyblock_world";
@ConfigComment("World difficulty setting - PEACEFUL, EASY, NORMAL, HARD")
@ConfigComment("Other plugins may override this setting")

View File

@ -11,8 +11,8 @@ world:
# Friendly name for this world. Used in admin commands. Must be a single word
friendly-name: BSkyBlock
# Name of the world - if it does not exist then it will be generated.
# It acts like a prefix for nether and end (e.g. BSkyBlock-world, BSkyBlock-world_nether, BSkyBlock-world_end)
world-name: BSkyBlock_world
# It acts like a prefix for nether and end (e.g. bskyblock-world, bskyblock-world_nether, bskyblock-world_end)
world-name: bskyblock_world
# World difficulty setting - PEACEFUL, EASY, NORMAL, HARD
# Other plugins may override this setting
difficulty: NORMAL