mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 04:09:54 +01:00
Implemented CraftServer.getAllowEnd(). Thanks codename-B!
This commit is contained in:
parent
d36ac82c83
commit
f7649724fe
@ -223,7 +223,13 @@ public class MinecraftServer implements Runnable, ICommandListener, IMinecraftSe
|
||||
}
|
||||
|
||||
if (k == 2) {
|
||||
// CraftBukkit start (+ don't do this in server.properties, do it in bukkit.yml)
|
||||
if (this.server.getAllowEnd()) {
|
||||
dimension = 1;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
// CraftBukkit end
|
||||
}
|
||||
|
||||
String worldType = Environment.getEnvironment(dimension).toString().toLowerCase();
|
||||
|
@ -309,6 +309,10 @@ public final class CraftServer implements Server {
|
||||
return this.getConfigString("server-id", "unnamed");
|
||||
}
|
||||
|
||||
public boolean getAllowEnd() {
|
||||
return this.configuration.getBoolean("settings.allow-end");
|
||||
}
|
||||
|
||||
public boolean getAllowNether() {
|
||||
return this.getConfigBoolean("allow-nether", true);
|
||||
}
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
|
||||
settings:
|
||||
allow-end: true
|
||||
spawn-radius: 16
|
||||
permissions-file: permissions.yml
|
||||
update-folder: update
|
||||
|
Loading…
Reference in New Issue
Block a user