CavePVP-Stuff/cSpigot-master/spigot-server-Patches/0031-Metrics.patch

23 lines
1.0 KiB
Diff
Raw Normal View History

2023-05-01 20:59:40 +02:00
From 7c59632537e9f83a0b1c9da0e7ad7acf7835c694 Mon Sep 17 00:00:00 2001
From: Zach Brown <zach.brown@destroystokyo.com>
Date: Mon, 18 May 2015 19:39:51 -0500
Subject: [PATCH] Metrics
diff --git a/src/main/java/org/spigotmc/Metrics.java b/src/main/java/org/spigotmc/Metrics.java
index d9c3b63bb..6e460495f 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";
+ String pluginName = "PaperSpigot"; // PaperSpigot - Glorious usage 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.13.3