docker-minecraft-server
docker-minecraft-server copied to clipboard
It would be nice to have these world related ENV variables
Enhancement Type
Improve an existing feature
Describe the enhancement
Hey! Could you please add those new ENV variables?
-
COPY_WORLD_DEST (String) -> Change the world copy destination, I like to use all the worlds inside a worlds directory, for organization and plugin development purposes, I'd like to set that variable to "/data/worlds" so it doesn't copy the worlds to the default "/data" location.
-
REMOVE_OLD_WORLDS (Boolean) -> Wether or not clean up the worlds directory set with COPY_WORLD_DEST variable before copying the worlds on each startup, I'd like to use this feature on a minigame server, so the worlds get restored on each server restart.
-
REMOVE_OLD_WORLDS_INCLUDE and REMOVE_OLD_WORLDS_EXCLUDE (String) -> Allow to include or exclude worlds when using REMOVE_OLD_WORLDS variable.
-
WORLDS (String) -> List of worlds from "/worlds" that should be copied to the COPY_WORLD_DEST (taking into consideration REMOVE_OLD_WORLDS, REMOVE_OLD_WORLDS_INCLUDE, and REMOVE_OLD_WORLDS_EXCLUDE variables), with the possibility to copy all of them setting this to "" OR "ALL". This variable could be also merged into the existing WORLD one, specifying multiple paths or "/worlds/" to copy all of them.
Thanks!
As mentioned in Discord, this is queued up.
pretty cool idea, I can see the usefulness as it is a similar functionality to the current plugin system.
Although to note, using this for mod development would make your mod incompatible with any other mod that looks for the world save location... not that I can think of any that do that.
I did something similar previously using a bash script to restore the world on a monthly basis for a couple of servers, instead of using a mod/plugin to protect the server from players. This made players a lot happier as they could go through and do whatever they want to premade worlds and then it and the playerdata would reset on the first of the month. I can see this functionality as an easier way to do this. thanks for suggesting it!