docker-minecraft-server icon indicating copy to clipboard operation
docker-minecraft-server copied to clipboard

Add option to reset/delete the world on startup

Open nmills3 opened this issue 3 years ago • 2 comments

Enhancement Type

A completely new feature

Describe the enhancement

Add a new option that when set to true will delete the world folder on startup. Useful for minigame servers using mods such as bingo or lockout where a fresh world with a new random seed is needed for each game as a quick container restart will do all of the work.

Another option could be to allow the world option to take an empty folder and that in combination with the force copy option could be used to the same effect.

nmills3 avatar Aug 03 '22 21:08 nmills3

Great idea!

itzg avatar Aug 03 '22 22:08 itzg

A workaround I used was to point the WORLD at an empty directory and set FORCE_WORLD_COPY to true

  WORLD: "/worlds/blank"
  FORCE_WORLD_COPY: "true"

mhuot avatar Oct 27 '22 18:10 mhuot