diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/LimboAuth.java | 5 | ||||
-rw-r--r-- | src/main/java/net/elytrium/limboauth/Settings.java | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/main/java/net/elytrium/limboauth/LimboAuth.java b/src/main/java/net/elytrium/limboauth/LimboAuth.java index 329fcb7..fb2dd1d 100644 --- a/src/main/java/net/elytrium/limboauth/LimboAuth.java +++ b/src/main/java/net/elytrium/limboauth/LimboAuth.java @@ -71,6 +71,7 @@ import net.elytrium.limboapi.api.LimboFactory; import net.elytrium.limboapi.api.chunk.Dimension; import net.elytrium.limboapi.api.chunk.VirtualWorld; import net.elytrium.limboapi.api.file.SchematicFile; +import net.elytrium.limboapi.api.file.StructureFile; import net.elytrium.limboapi.api.file.WorldFile; import net.elytrium.limboauth.command.ChangePasswordCommand; import net.elytrium.limboauth.command.DestroySessionCommand; @@ -262,6 +263,10 @@ public class LimboAuth { file = new SchematicFile(path); break; } + case "structure": { + file = new StructureFile(path); + break; + } default: { this.getLogger().error("Incorrect world file type."); this.server.shutdown(); diff --git a/src/main/java/net/elytrium/limboauth/Settings.java b/src/main/java/net/elytrium/limboauth/Settings.java index badc906..6246444 100644 --- a/src/main/java/net/elytrium/limboauth/Settings.java +++ b/src/main/java/net/elytrium/limboauth/Settings.java @@ -111,9 +111,9 @@ public class Settings extends Config { public String ALLOWED_NICKNAME_REGEX = "^[A-Za-z0-9_]{3,16}$"; public boolean LOAD_WORLD = false; - @Comment("World file type: schematic") - public String WORLD_FILE_TYPE = "schematic"; - public String WORLD_FILE_PATH = "world.schematic"; + @Comment("World file type: schematic (1.12.2 and lower), structure block .nbt (saved in the latest version)") + public String WORLD_FILE_TYPE = "structure"; + public String WORLD_FILE_PATH = "world.nbt"; @Comment({ "Custom isPremium URL", "You can use Mojang one's API (set by default)", |