MultiPaperK8s / MultiPaperHelm

Multipaper Helm Chart
MIT License
11 stars 5 forks source link

Add support for Master world saving #2

Closed RemcoSpigot closed 2 years ago

RemcoSpigot commented 2 years ago
1lann commented 2 years ago

I personally would just want the entire server directory as a single persistent volume so /op, etc. works.

RemcoSpigot commented 2 years ago

LGTM, I'm not sure though about why the_end and the nether are seperate, are they not DIM-1/DIM1 or whatever subfolders in the world directory?

Unlike normal world saving in Minecraft, the DIM and DIM-1 folders are located in their own world_nether and world_the_end folders. The logic for finding the world directory can be found here.

RemcoSpigot commented 2 years ago

I personally would just want the entire server directory as a single persistent volume so /op, etc. works.

This would be great. However for this to work the world folders would have to be in a sub directory relative to the work directory of the container. Otherwise if we would make the entire work directory a volume, it would override the contents and remove the JAR along with it. For saving the ops.json and other files we should have to find another solution. At least in the future a plugins folder will also be added by default to the values.yaml.

1lann commented 2 years ago

Alright, the way I did it in my spec was keep the jar outside of the work folder, and make the entire work folder a volume (i.e. the server runs fine even if the jar is outside of the current directory, it will still store everything in the current directory!)