mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 17:52:28 +01:00
Added new bukkit.yml entry (settings -> world-container) to control the directory worlds are stored in
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
6f832c669f
commit
5ee5bffb9f
1 changed files with 5 additions and 1 deletions
|
@ -509,7 +509,7 @@ public final class CraftServer implements Server {
|
|||
}
|
||||
|
||||
int dimension = 10 + console.worlds.size();
|
||||
WorldServer internal = new WorldServer(console, new ServerNBTManager(new File("."), name, true), name, dimension, new WorldSettings(creator.seed(), getDefaultGameMode().getValue(), true), creator.environment(), generator);
|
||||
WorldServer internal = new WorldServer(console, new ServerNBTManager(getWorldContainer(), name, true), name, dimension, new WorldSettings(creator.seed(), getDefaultGameMode().getValue(), true), creator.environment(), generator);
|
||||
|
||||
if (!(worlds.containsKey(name.toLowerCase()))) {
|
||||
return null;
|
||||
|
@ -898,4 +898,8 @@ public final class CraftServer implements Server {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public File getWorldContainer() {
|
||||
return new File(configuration.getString("settings.world-container", "."));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue