[NMS] Completely deleting a world while server is running

Discussion in 'Plugin Development' started by Ronbo, Jul 7, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Ronbo

    I'm trying to delete a world that has been loaded but is, of course, unloaded before deletion.

    However, it looks like Bukkit keeps certain region files (I think the ones containing the world's spawn) loaded even after unloadWorld() is used on the world.

    Is there any reference to these files which can be accessed and closed?
     
  2. Offline

    Skye

    I believe unloading the world should be enough to allow deleting its data, unless you're trying to delete one of the default worlds.
     
  3. Try before unloading:
    Code:
    world.setKeepSpawnInMemory(false);
     
    Ronbo likes this.
Thread Status:
Not open for further replies.

Share This Page