Temporaly commentet world-related code

This commit is contained in:
Nanit 2022-01-26 18:50:07 +02:00
parent aac321e182
commit 297c1fa722
2 changed files with 3 additions and 11 deletions

View File

@ -82,7 +82,7 @@ public final class LimboConfig {
address = conf.node("bind").get(SocketAddress.class); address = conf.node("bind").get(SocketAddress.class);
maxPlayers = conf.node("maxPlayers").getInt(); maxPlayers = conf.node("maxPlayers").getInt();
pingData = conf.node("ping").get(PingData.class); pingData = conf.node("ping").get(PingData.class);
useSchematic = conf.node("world", "enable").getBoolean(false); //useSchematic = conf.node("world", "enable").getBoolean(false);
dimensionType = conf.node("dimension").getString(); dimensionType = conf.node("dimension").getString();
spawnPosition = conf.node("spawnPosition").get(Location.class); spawnPosition = conf.node("spawnPosition").get(Location.class);
gameMode = conf.node("gameMode").getInt(); gameMode = conf.node("gameMode").getInt();
@ -91,8 +91,8 @@ public final class LimboConfig {
useBossBar = conf.node("bossBar", "enable").getBoolean(); useBossBar = conf.node("bossBar", "enable").getBoolean();
useTitle = conf.node("title", "enable").getBoolean(); useTitle = conf.node("title", "enable").getBoolean();
if (useSchematic) /*if (useSchematic)
schematicPath = Paths.get(conf.node("world", "path").getString("./spawn.schem")); schematicPath = Paths.get(conf.node("world", "path").getString("./spawn.schem"));*/
if(useBrandName) if(useBrandName)
brandName = conf.node("brandName", "content").getString(); brandName = conf.node("brandName", "content").getString();

View File

@ -16,14 +16,6 @@ ping:
description: '{"text": "&9NanoLimbo"}' description: '{"text": "&9NanoLimbo"}'
version: 'NanoLimbo' version: 'NanoLimbo'
# World settings
world:
# Enable schematic loading.
# If false, then player will be spawned in the void
enable: false
# Relative path to schematic file
path: "./spawn.schem"
# Available dimensions: OVERWORLD, NETHER, THE_END # Available dimensions: OVERWORLD, NETHER, THE_END
dimension: THE_END dimension: THE_END