testserver/Spigot-Server-Patches/0018-Metrics.patch

23 lines
1.0 KiB
Diff
Raw Normal View History

From 7ebf3a58079064072c7e0aa534b092ba412ed5c8 Mon Sep 17 00:00:00 2001
From: Zach Brown <zach.brown@destroystokyo.com>
2016-02-29 23:09:49 +00:00
Date: Tue, 1 Mar 2016 14:54:32 -0600
Subject: [PATCH] Metrics
diff --git a/src/main/java/org/spigotmc/Metrics.java b/src/main/java/org/spigotmc/Metrics.java
index a5fd59d5e..680283ce0 100644
--- a/src/main/java/org/spigotmc/Metrics.java
+++ b/src/main/java/org/spigotmc/Metrics.java
@@ -344,7 +344,7 @@ public class Metrics {
*/
private void postPlugin(final boolean isPing) throws IOException {
// Server software specific section
- String pluginName = "Spigot";
2016-02-29 23:09:49 +00:00
+ String pluginName = "PaperSpigot"; // Paper - Keep old name for legacy data
boolean onlineMode = Bukkit.getServer().getOnlineMode(); // TRUE if online mode is enabled
String pluginVersion = (Metrics.class.getPackage().getImplementationVersion() != null) ? Metrics.class.getPackage().getImplementationVersion() : "unknown";
String serverVersion = Bukkit.getVersion();
--
2.12.0.windows.1