mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-29 14:05:46 +01:00
Updated Instances (markdown)
parent
45ecaab29c
commit
18ebc87609
@ -34,5 +34,5 @@ Check [here](https://github.com/Minestom/Minestom/wiki/Storage) if you want more
|
|||||||
StorageFolder storageFolder = MinecraftServer.getStorageManager().getFolder("chunk_data");
|
StorageFolder storageFolder = MinecraftServer.getStorageManager().getFolder("chunk_data");
|
||||||
InstanceContainer instanceContainer = instanceManager.createInstanceContainer(storageFolder);
|
InstanceContainer instanceContainer = instanceManager.createInstanceContainer(storageFolder);
|
||||||
// Save all chunks to files, you can specify a callback in order to know when the saving is done
|
// Save all chunks to files, you can specify a callback in order to know when the saving is done
|
||||||
instanceContainer.saveChunksToStorageFolder();
|
instanceContainer.saveChunksToStorage();
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user