geforkt von Mirrors/Paper
Fix issue with manifest util in tests
Dieser Commit ist enthalten in:
Ursprung
7b6179345f
Commit
4cf1f0d22a
@ -73,7 +73,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ */
|
||||
+ @NotNull
|
||||
+ public static String getVersionMessage() {
|
||||
+ final var manifest = JarManifests.manifest(Bukkit.getServer().getClass());
|
||||
+ final java.util.jar.Manifest manifest;
|
||||
+ if (java.lang.reflect.Proxy.isProxyClass(Bukkit.getServer().getClass())) { // TestServer
|
||||
+ manifest = new java.util.jar.Manifest();
|
||||
+ } else {
|
||||
+ manifest = JarManifests.manifest(Bukkit.getServer().getClass());
|
||||
+ }
|
||||
+ final String gitBranch = manifest.getMainAttributes().getValue("Git-Branch");
|
||||
+ final String gitCommit = manifest.getMainAttributes().getValue("Git-Commit");
|
||||
+ String branchMsg = " on " + gitBranch;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren