User lower case for world name.

This commit is contained in:
tastybento 2019-05-15 09:32:48 -07:00 committed by tastybento
parent 4b0f277aea
commit 7e540e0b57
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -46,9 +46,9 @@ public class Settings implements WorldSettings {
private String friendlyName = "BSkyBlock"; private String friendlyName = "BSkyBlock";
@ConfigComment("Name of the world - if it does not exist then it will be generated.") @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") @ConfigEntry(path = "world.world-name")
private String worldName = "BSkyBlock_world"; private String worldName = "bskyblock_world";
@ConfigComment("World difficulty setting - PEACEFUL, EASY, NORMAL, HARD") @ConfigComment("World difficulty setting - PEACEFUL, EASY, NORMAL, HARD")
@ConfigComment("Other plugins may override this setting") @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 for this world. Used in admin commands. Must be a single word
friendly-name: BSkyBlock friendly-name: BSkyBlock
# Name of the world - if it does not exist then it will be generated. # 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) # It acts like a prefix for nether and end (e.g. bskyblock-world, bskyblock-world_nether, bskyblock-world_end)
world-name: BSkyBlock_world world-name: bskyblock_world
# World difficulty setting - PEACEFUL, EASY, NORMAL, HARD # World difficulty setting - PEACEFUL, EASY, NORMAL, HARD
# Other plugins may override this setting # Other plugins may override this setting
difficulty: NORMAL difficulty: NORMAL