mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-06 02:42:14 +01:00
4fb5e0fe14
Add the following: - Add proper methods for getting and setting items in both hands. Deprecates old methods - Enable/Disable slot interactions
24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
From be4311568ddb5dfe4be686cec3907e7ac9018ae3 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Sat, 16 Apr 2016 00:39:33 -0400
|
|
Subject: [PATCH] Configurable RCON IP address
|
|
|
|
For servers with multiple IP's, ability to bind to a specific interface.
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/RemoteControlListener.java b/src/main/java/net/minecraft/server/RemoteControlListener.java
|
|
index 6f0176f6f..c237f239f 100644
|
|
--- a/src/main/java/net/minecraft/server/RemoteControlListener.java
|
|
+++ b/src/main/java/net/minecraft/server/RemoteControlListener.java
|
|
@@ -24,7 +24,7 @@ public class RemoteControlListener extends RemoteConnectionThread {
|
|
super(iminecraftserver, "RCON Listener");
|
|
this.h = iminecraftserver.a("rcon.port", 0);
|
|
this.l = iminecraftserver.a("rcon.password", "");
|
|
- this.j = iminecraftserver.e();
|
|
+ this.j = iminecraftserver.a("rcon.ip", ((DedicatedServer) iminecraftserver).getServerIp()); // Paper
|
|
this.i = iminecraftserver.f();
|
|
if (0 == this.h) {
|
|
this.h = this.i + 10;
|
|
--
|
|
2.17.0
|
|
|