2016-04-16 06:39:33 +02:00
|
|
|
--- a/net/minecraft/server/rcon/thread/RconThread.java
|
|
|
|
+++ b/net/minecraft/server/rcon/thread/RconThread.java
|
|
|
|
@@ -57,7 +57,7 @@
|
|
|
|
@Nullable
|
|
|
|
public static RconThread create(ServerInterface server) {
|
|
|
|
DedicatedServerProperties dedicatedServerProperties = server.getProperties();
|
|
|
|
- String string = server.getServerIp();
|
|
|
|
+ String string = dedicatedServerProperties.rconIp; // Paper - Configurable rcon ip
|
|
|
|
if (string.isEmpty()) {
|
|
|
|
string = "0.0.0.0";
|
|
|
|
}
|
2020-03-31 09:50:42 +02:00
|
|
|
@@ -104,6 +104,14 @@
|
|
|
|
|
|
|
|
this.clients.clear();
|
|
|
|
}
|
|
|
|
+ // Paper start - don't wait for remote connections
|
|
|
|
+ public void stopNonBlocking() {
|
|
|
|
+ this.running = false;
|
|
|
|
+ for (RconClient client : this.clients) {
|
|
|
|
+ client.running = false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // Paper end - don't wait for remote connections
|
|
|
|
|
|
|
|
private void closeSocket(ServerSocket socket) {
|
|
|
|
LOGGER.debug("closeSocket: {}", socket);
|