[SPIGOT-5824] world-container does not work Created: 25/Jun/20  Updated: 13/Jun/23

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: YourCoal Assignee: Unassigned
Resolution: Unresolved Votes: 3
Labels: 1.16

Issue Links:
Duplicate
is duplicated by SPIGOT-7390 World Container in Bukkit.yml not wor... Resolved
Relates
relates to SPIGOT-5885 Can't disable advancements Reopened
Version: git-Spigot-758abbe-3f0c333 (MC: 1.16.1)
Guidelines Read: Yes

 Description   

In bukkit.yml, I have specified a world-container folder for all worlds to be saved in. However, it no longer works for 1.16.1.

Steps to reproduce:

  • You can either use a previous 1.15.2 server or a fresh 1.16.1 server, and in bukkit.yml add settings.world-container: worlds
  • Start the server
  • The worlds are not saved/loaded from that folder, they are in the main directory

What should occur:

  • Those worlds should save/load in the directory specified.


 Comments   
Comment by leasoncre [ 03/Aug/20 ]

@AymericMartin

the --world-container worlds flag MUST be AFTER the jar file is specified in the startup arguments.

-jar spigot.jar nogui --world-container worlds

I use alot of flags, so it looks like a mess, but just be sure that the above^ is in the right order.

-The plugins not recognizing the loaded world sounds like a potential configuration issue elsewhere.


Depending on your serverhost, you may need to use a custom server type and specify all the args yourself.

ie: I use AMP (by Cubecoders) and their current build puts the normal jar drop-down-menu-selection argument after the  normal startup args, so it'll never load the right worlds.

-Xms6G -Xmx6G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch  -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=8 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paperclip.jar nogui --world-container worlds
Comment by Aymeric Martin [ 02/Aug/20 ]

I used your solution, problem if the player is connected to the correct map, the plugins do not recognize the map in the folder as being the main map.

Comment by md_5 [ 26/Jun/20 ]

--world-container, -W, --universe, --world-dir
Any of those, they're all aliases

Comment by Nerijus Gabalis [ 26/Jun/20 ]

What command line flag should be used for this?

Comment by md_5 [ 25/Jun/20 ]

Unlikely to be fixed, Vanilla loads the main world too early. Use the command line flag instead.

Generated at Tue Apr 15 09:41:37 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.