Added world.getWorldFolder, server.getWorldContainer

By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot 2011-11-25 03:46:47 +00:00
parent 34f857ad15
commit 409c447cbd
3 changed files with 20 additions and 0 deletions

View file

@ -1,6 +1,7 @@
package org.bukkit;
import com.avaje.ebean.config.ServerConfig;
import java.io.File;
import java.util.List;
import java.util.Map;
import java.util.Set;
@ -281,4 +282,8 @@ public final class Bukkit {
public static Set<OfflinePlayer> getOperators() {
return server.getOperators();
}
public static File getWorldContainer() {
return server.getWorldContainer();
}
}

View file

@ -511,4 +511,11 @@ public interface Server {
* @return The Console CommandSender
*/
public ConsoleCommandSender getConsoleSender();
/**
* Gets the folder that contains all of the various {@link World}s.
*
* @return World container folder
*/
public File getWorldContainer();
}

View file

@ -1,5 +1,6 @@
package org.bukkit;
import java.io.File;
import org.bukkit.generator.ChunkGenerator;
import java.util.HashMap;
import java.util.List;
@ -739,6 +740,13 @@ public interface World {
*/
public Difficulty getDifficulty();
/**
* Gets the folder of this world on disk.
*
* @return The folder of this world.
*/
public File getWorldFolder();
/**
* Represents various map environment types that a world may be
*/