2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/server/dedicated/DedicatedServerSettings.java
|
|
|
|
+++ b/net/minecraft/server/dedicated/DedicatedServerSettings.java
|
|
|
|
@@ -4,14 +4,21 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
import java.util.function.UnaryOperator;
|
2021-03-15 23:00:00 +01:00
|
|
|
import net.minecraft.core.IRegistryCustom;
|
2021-03-08 22:47:33 +01:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
+// CraftBukkit start
|
|
|
|
+import java.io.File;
|
|
|
|
+import joptsimple.OptionSet;
|
|
|
|
+// CraftBukkit end
|
2021-03-08 22:47:33 +01:00
|
|
|
+
|
2019-04-23 04:00:00 +02:00
|
|
|
public class DedicatedServerSettings {
|
|
|
|
|
2021-03-15 23:00:00 +01:00
|
|
|
private final Path path;
|
2019-04-23 04:00:00 +02:00
|
|
|
private DedicatedServerProperties properties;
|
|
|
|
|
2021-03-15 23:00:00 +01:00
|
|
|
- public DedicatedServerSettings(IRegistryCustom iregistrycustom, Path path) {
|
|
|
|
- this.path = path;
|
|
|
|
- this.properties = DedicatedServerProperties.load(iregistrycustom, path);
|
2019-04-23 04:00:00 +02:00
|
|
|
+ // CraftBukkit start
|
2020-08-11 23:00:00 +02:00
|
|
|
+ public DedicatedServerSettings(IRegistryCustom iregistrycustom, OptionSet optionset) {
|
2019-04-23 04:00:00 +02:00
|
|
|
+ this.path = ((File) optionset.valueOf("config")).toPath();
|
2020-08-11 23:00:00 +02:00
|
|
|
+ this.properties = DedicatedServerProperties.load(iregistrycustom, path, optionset);
|
2019-04-23 04:00:00 +02:00
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
|
|
|
|
public DedicatedServerProperties getProperties() {
|