mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 07:20:00 +08:00
35b4136815
It is often difficult to diagnose new issues server admins get when upgrading to a new server version because the only information they are able to tell us regarding the server version they are running is "latest". This commit attempts to mitigate this by keeping track of the previous version of Paper they were running, which is then reported by the `/version` or `/paper version` command. This gives us a better idea of the commits included in the upgrade, which may help diagnose new issues easier.
22 lines
991 B
Diff
22 lines
991 B
Diff
From 021716c338c60c29f5080847c508a2f6441bd08e Mon Sep 17 00:00:00 2001
|
|
From: Kyle Wood <demonwav@gmail.com>
|
|
Date: Thu, 1 Mar 2018 19:38:14 -0600
|
|
Subject: [PATCH] Load version history at server start
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java
|
|
index 85445571..39a3d46f 100644
|
|
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
|
|
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
|
|
@@ -203,6 +203,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
|
// Paper start
|
|
com.destroystokyo.paper.PaperConfig.init((File) options.valueOf("paper-settings"));
|
|
com.destroystokyo.paper.PaperConfig.registerCommands();
|
|
+ com.destroystokyo.paper.VersionHistoryManager.INSTANCE.getClass(); // load version history now
|
|
// Paper end
|
|
|
|
DedicatedServer.LOGGER.info("Generating keypair");
|
|
--
|
|
2.17.0
|
|
|