mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 18:45:54 +01:00
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
--- a/net/minecraft/server/DedicatedServerSettings.java
|
|
+++ b/net/minecraft/server/DedicatedServerSettings.java
|
|
@@ -1,15 +1,21 @@
|
|
package net.minecraft.server;
|
|
|
|
import java.util.function.UnaryOperator;
|
|
+// CraftBukkit start
|
|
+import java.io.File;
|
|
+import joptsimple.OptionSet;
|
|
+// CraftBukkit end
|
|
|
|
public class DedicatedServerSettings {
|
|
|
|
private final java.nio.file.Path path;
|
|
private DedicatedServerProperties properties;
|
|
|
|
- public DedicatedServerSettings(IRegistryCustom iregistrycustom, java.nio.file.Path java_nio_file_path) {
|
|
- this.path = java_nio_file_path;
|
|
- this.properties = DedicatedServerProperties.load(iregistrycustom, java_nio_file_path);
|
|
+ // CraftBukkit start
|
|
+ public DedicatedServerSettings(IRegistryCustom iregistrycustom, OptionSet optionset) {
|
|
+ this.path = ((File) optionset.valueOf("config")).toPath();
|
|
+ this.properties = DedicatedServerProperties.load(iregistrycustom, path, optionset);
|
|
+ // CraftBukkit end
|
|
}
|
|
|
|
public DedicatedServerProperties getProperties() {
|