mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
Added world.getWorldFolder, server.getWorldContainer
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
34f857ad15
commit
409c447cbd
3 changed files with 20 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue