summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-07-26 13:20:29 +1000
committermd_5 <git@md-5.net>2017-07-26 13:20:29 +1000
commitb1b9ab0df94c3b4b5c2613b7bf6347be10e864fc (patch)
treeb521e128b5c14b8cb81f052056b3938fff1c4db5 /nms-patches
parentd35483b0e10b2017382a5fb407ecb889483bafaf (diff)
downloadcraftbukkit-b1b9ab0df94c3b4b5c2613b7bf6347be10e864fc.tar
craftbukkit-b1b9ab0df94c3b4b5c2613b7bf6347be10e864fc.tar.gz
craftbukkit-b1b9ab0df94c3b4b5c2613b7bf6347be10e864fc.tar.lz
craftbukkit-b1b9ab0df94c3b4b5c2613b7bf6347be10e864fc.tar.xz
craftbukkit-b1b9ab0df94c3b4b5c2613b7bf6347be10e864fc.zip
SPIGOT-3461: Standardise plugin load timing
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/DedicatedServer.patch20
1 files changed, 12 insertions, 8 deletions
diff --git a/nms-patches/DedicatedServer.patch b/nms-patches/DedicatedServer.patch
index 32e62d4c..cce1ba0a 100644
--- a/nms-patches/DedicatedServer.patch
+++ b/nms-patches/DedicatedServer.patch
@@ -108,16 +108,20 @@
this.r = new EULA(new File("eula.txt"));
if (!this.r.a()) {
DedicatedServer.LOGGER.info("You need to agree to the EULA in order to run the server. Go to eula.txt for more info.");
-@@ -136,6 +183,8 @@
+@@ -136,6 +183,12 @@
return false;
}
-+ this.a((PlayerList) (new DedicatedPlayerList(this))); // CraftBukkit
++ // CraftBukkit start
++ this.a((PlayerList) (new DedicatedPlayerList(this)));
++ server.loadPlugins();
++ server.enablePlugins(org.bukkit.plugin.PluginLoadOrder.STARTUP);
++ // CraftBukkit end
+
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.");
-@@ -150,7 +199,7 @@
+@@ -150,7 +203,7 @@
if (!NameReferencingFileConverter.a(this.propertyManager)) {
return false;
} else {
@@ -126,7 +130,7 @@
long j = System.nanoTime();
if (this.S() == null) {
-@@ -198,7 +247,7 @@
+@@ -198,7 +251,7 @@
DedicatedServer.LOGGER.info("Done ({})! For help, type \"help\" or \"?\"", s3);
if (this.propertyManager.a("announce-player-achievements")) {
@@ -135,7 +139,7 @@
this.propertyManager.b("announce-player-achievements");
this.propertyManager.savePropertiesFile();
}
-@@ -213,7 +262,18 @@
+@@ -213,7 +266,18 @@
DedicatedServer.LOGGER.info("Starting remote control listener");
this.p = new RemoteControlListener(this);
this.p.a();
@@ -154,7 +158,7 @@
if (this.aT() > 0L) {
Thread thread1 = new Thread(new ThreadWatchdog(this));
-@@ -298,11 +358,11 @@
+@@ -298,11 +362,11 @@
return crashreport;
}
@@ -168,7 +172,7 @@
super.D();
this.aP();
}
-@@ -333,7 +393,15 @@
+@@ -333,7 +397,15 @@
while (!this.serverCommandQueue.isEmpty()) {
ServerCommand servercommand = (ServerCommand) this.serverCommandQueue.remove(0);
@@ -185,7 +189,7 @@
}
}
-@@ -536,16 +604,70 @@
+@@ -536,16 +608,70 @@
}
public String getPlugins() {