2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/server/dedicated/DedicatedServerSettings.java
|
|
|
|
+++ b/net/minecraft/server/dedicated/DedicatedServerSettings.java
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -3,14 +3,21 @@
|
|
|
|
import java.nio.file.Path;
|
2019-04-23 04:00:00 +02:00
|
|
|
import java.util.function.UnaryOperator;
|
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-06-11 07:00:00 +02:00
|
|
|
private final Path source;
|
2019-04-23 04:00:00 +02:00
|
|
|
private DedicatedServerProperties properties;
|
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
- public DedicatedServerSettings(Path path) {
|
|
|
|
- this.source = path;
|
2021-11-21 23:00:00 +01:00
|
|
|
- this.properties = DedicatedServerProperties.fromFile(path);
|
2019-04-23 04:00:00 +02:00
|
|
|
+ // CraftBukkit start
|
2021-06-11 07:00:00 +02:00
|
|
|
+ public DedicatedServerSettings(OptionSet optionset) {
|
|
|
|
+ this.source = ((File) optionset.valueOf("config")).toPath();
|
2021-11-21 23:00:00 +01:00
|
|
|
+ this.properties = DedicatedServerProperties.fromFile(source, optionset);
|
2019-04-23 04:00:00 +02:00
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
|
|
|
|
public DedicatedServerProperties getProperties() {
|