geforkt von Mirrors/Paper
[Bleeding] Add getWorldType() and getGenerateStructures() methods to Bukkit and Server. Fixes BUKKIT-855
By: Mike Primm <mike@primmhome.com>
Dieser Commit ist enthalten in:
Ursprung
b891ec330b
Commit
a4ec97483e
@ -102,6 +102,14 @@ public final class Bukkit {
|
||||
return server.getServerId();
|
||||
}
|
||||
|
||||
public static String getWorldType() {
|
||||
return server.getWorldType();
|
||||
}
|
||||
|
||||
public static boolean getGenerateStructures() {
|
||||
return server.getGenerateStructures();
|
||||
}
|
||||
|
||||
public static boolean getAllowNether() {
|
||||
return server.getAllowNether();
|
||||
}
|
||||
|
@ -117,6 +117,20 @@ public interface Server extends PluginMessageRecipient {
|
||||
*/
|
||||
public String getServerId();
|
||||
|
||||
/**
|
||||
* Get world type (level-type setting) for default world
|
||||
*
|
||||
* @return The value of level-type (e.g. DEFAULT, FLAT, DEFAULT_1_1)
|
||||
*/
|
||||
public String getWorldType();
|
||||
|
||||
/**
|
||||
* Get generate-structures setting
|
||||
*
|
||||
* @return true if structure generation is enabled, false if not
|
||||
*/
|
||||
public boolean getGenerateStructures();
|
||||
|
||||
/**
|
||||
* Gets whether this server allows the End or not.
|
||||
*
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren