geforkt von Mirrors/Paper
Added world.getWorldFolder, server.getWorldContainer
By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
34f857ad15
Commit
409c447cbd
@ -1,6 +1,7 @@
|
|||||||
package org.bukkit;
|
package org.bukkit;
|
||||||
|
|
||||||
import com.avaje.ebean.config.ServerConfig;
|
import com.avaje.ebean.config.ServerConfig;
|
||||||
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@ -281,4 +282,8 @@ public final class Bukkit {
|
|||||||
public static Set<OfflinePlayer> getOperators() {
|
public static Set<OfflinePlayer> getOperators() {
|
||||||
return server.getOperators();
|
return server.getOperators();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static File getWorldContainer() {
|
||||||
|
return server.getWorldContainer();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -511,4 +511,11 @@ public interface Server {
|
|||||||
* @return The Console CommandSender
|
* @return The Console CommandSender
|
||||||
*/
|
*/
|
||||||
public ConsoleCommandSender getConsoleSender();
|
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;
|
package org.bukkit;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
import org.bukkit.generator.ChunkGenerator;
|
import org.bukkit.generator.ChunkGenerator;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -739,6 +740,13 @@ public interface World {
|
|||||||
*/
|
*/
|
||||||
public Difficulty getDifficulty();
|
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
|
* Represents various map environment types that a world may be
|
||||||
*/
|
*/
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren