more progress
This commit is contained in:
@@ -10,8 +10,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
--- a/src/main/java/net/minecraft/server/DedicatedServerProperties.java
|
||||
+++ b/src/main/java/net/minecraft/server/DedicatedServerProperties.java
|
||||
@@ -0,0 +0,0 @@ public class DedicatedServerProperties extends PropertyManager<DedicatedServerPr
|
||||
public final PropertyManager<DedicatedServerProperties>.EditableProperty<Integer> playerIdleTimeout;
|
||||
public final PropertyManager<DedicatedServerProperties>.EditableProperty<Boolean> whiteList;
|
||||
public final GeneratorSettings generatorSettings;
|
||||
|
||||
+ public final String rconIp; // Paper - Add rcon ip
|
||||
+
|
||||
@@ -19,9 +19,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
public DedicatedServerProperties(Properties properties, OptionSet optionset) {
|
||||
super(properties, optionset);
|
||||
@@ -0,0 +0,0 @@ public class DedicatedServerProperties extends PropertyManager<DedicatedServerPr
|
||||
}, 29999984);
|
||||
this.playerIdleTimeout = this.b("player-idle-timeout", 0);
|
||||
this.whiteList = this.b("white-list", false);
|
||||
this.generatorSettings = GeneratorSettings.a(properties);
|
||||
+ // Paper start - Configurable rcon ip
|
||||
+ final String rconIp = this.getSettingIfExists("rcon.ip");
|
||||
+ this.rconIp = rconIp == null ? this.serverIp : rconIp;
|
||||
@@ -50,10 +50,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+++ b/src/main/java/net/minecraft/server/RemoteControlListener.java
|
||||
@@ -0,0 +0,0 @@ public class RemoteControlListener extends RemoteConnectionThread {
|
||||
|
||||
this.h = dedicatedserverproperties.rconPort;
|
||||
this.k = dedicatedserverproperties.rconPassword;
|
||||
- this.i = iminecraftserver.e_();
|
||||
+ this.i = dedicatedserverproperties.rconIp; // Paper - Configurable rcon ip
|
||||
if (this.i.isEmpty()) {
|
||||
this.i = "0.0.0.0";
|
||||
this.e = dedicatedserverproperties.rconPort;
|
||||
this.h = dedicatedserverproperties.rconPassword;
|
||||
- this.f = iminecraftserver.h_();
|
||||
+ this.f = dedicatedserverproperties.rconIp; // Paper - Configurable rcon ip
|
||||
if (this.f.isEmpty()) {
|
||||
this.f = "0.0.0.0";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user