3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

[Bleeding] Add getWorldType() and getGenerateStructures() to CraftServer. Fixes BUKKIT-855

Dieser Commit ist enthalten in:
Mike Primm 2012-03-10 01:28:32 -06:00 committet von EvilSeph
Ursprung eaa56941f3
Commit bdd2139c78

Datei anzeigen

@ -373,6 +373,14 @@ public final class CraftServer implements Server {
return this.getConfigString("server-id", "unnamed");
}
public String getWorldType() {
return this.getConfigString("level-type", "DEFAULT");
}
public boolean getGenerateStructures() {
return this.getConfigBoolean("generate-structures", true);
}
public boolean getAllowEnd() {
return this.configuration.getBoolean("settings.allow-end");
}