@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/DedicatedServer.java
|
||||
+++ b/net/minecraft/server/DedicatedServer.java
|
||||
@@ -25,6 +25,17 @@
|
||||
@@ -26,6 +26,17 @@
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
public class DedicatedServer extends MinecraftServer implements IMinecraftServer {
|
||||
|
||||
private static final Logger LOGGER = LogManager.getLogger();
|
||||
@@ -38,8 +49,10 @@
|
||||
@@ -39,8 +50,10 @@
|
||||
@Nullable
|
||||
private ServerGUI p;
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
this.propertyManager = dedicatedserversettings;
|
||||
this.remoteControlCommandListener = new RemoteControlCommandListener(this);
|
||||
Thread thread = new Thread("Server Infinisleeper") {
|
||||
@@ -65,13 +78,37 @@
|
||||
@@ -66,13 +79,37 @@
|
||||
public boolean init() throws IOException {
|
||||
Thread thread = new Thread("Server console handler") {
|
||||
public void run() {
|
||||
@@ -72,7 +72,7 @@
|
||||
}
|
||||
} catch (IOException ioexception) {
|
||||
DedicatedServer.LOGGER.error("Exception handling console input", ioexception);
|
||||
@@ -80,6 +117,27 @@
|
||||
@@ -81,6 +118,27 @@
|
||||
}
|
||||
};
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
thread.setDaemon(true);
|
||||
thread.setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler(DedicatedServer.LOGGER));
|
||||
thread.start();
|
||||
@@ -133,6 +191,12 @@
|
||||
@@ -134,6 +192,12 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
if (!this.getOnlineMode()) {
|
||||
DedicatedServer.LOGGER.warn("**** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!");
|
||||
DedicatedServer.LOGGER.warn("The server will make no attempt to authenticate usernames. Beware.");
|
||||
@@ -147,7 +211,7 @@
|
||||
@@ -148,7 +212,7 @@
|
||||
if (!NameReferencingFileConverter.e(this)) {
|
||||
return false;
|
||||
} else {
|
||||
@@ -122,7 +122,7 @@
|
||||
long i = SystemUtils.getMonotonicNanos();
|
||||
String s = dedicatedserverproperties.levelSeed;
|
||||
String s1 = dedicatedserverproperties.generatorSettings;
|
||||
@@ -177,7 +241,13 @@
|
||||
@@ -178,7 +242,13 @@
|
||||
if (worldtype == WorldType.FLAT) {
|
||||
jsonobject.addProperty("flat_world_options", s1);
|
||||
} else if (!s1.isEmpty()) {
|
||||
@@ -137,7 +137,7 @@
|
||||
}
|
||||
|
||||
this.a(this.getWorld(), this.getWorld(), j, worldtype, jsonobject);
|
||||
@@ -199,6 +269,7 @@
|
||||
@@ -200,6 +270,7 @@
|
||||
DedicatedServer.LOGGER.info("Starting remote control listener");
|
||||
this.remoteControlListener = new RemoteControlListener(this);
|
||||
this.remoteControlListener.a();
|
||||
@@ -145,7 +145,7 @@
|
||||
}
|
||||
|
||||
if (this.getMaxTickTime() > 0L) {
|
||||
@@ -301,6 +372,7 @@
|
||||
@@ -307,6 +378,7 @@
|
||||
this.remoteStatusListener.b();
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -334,7 +406,15 @@
|
||||
@@ -340,7 +412,15 @@
|
||||
while (!this.serverCommandQueue.isEmpty()) {
|
||||
ServerCommand servercommand = (ServerCommand) this.serverCommandQueue.remove(0);
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -534,14 +614,45 @@
|
||||
@@ -540,14 +620,45 @@
|
||||
|
||||
@Override
|
||||
public String getPlugins() {
|
||||
@@ -218,7 +218,7 @@
|
||||
});
|
||||
return this.remoteControlCommandListener.getMessages();
|
||||
}
|
||||
@@ -562,4 +673,16 @@
|
||||
@@ -568,4 +679,16 @@
|
||||
public boolean a(GameProfile gameprofile) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user