mirror of
https://github.com/BentoBoxWorld/BSkyBlock.git
synced 2024-11-26 12:25:11 +01:00
User lower case for world name.
This commit is contained in:
parent
79d89bfe84
commit
0c03eb1a97
@ -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 ...");
|
||||||
}
|
}
|
||||||
|
@ -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")
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user