mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 14:08:57 +01:00
[Bleeding] Add getWorldType() and getGenerateStructures() to CraftServer. Fixes BUKKIT-855
This commit is contained in:
parent
eaa56941f3
commit
bdd2139c78
1 changed files with 8 additions and 0 deletions
|
@ -373,6 +373,14 @@ public final class CraftServer implements Server {
|
||||||
return this.getConfigString("server-id", "unnamed");
|
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() {
|
public boolean getAllowEnd() {
|
||||||
return this.configuration.getBoolean("settings.allow-end");
|
return this.configuration.getBoolean("settings.allow-end");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue