generated from PurpurMC/Tentacles
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4673c41
commit 6c8aa25
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
Submodule Canvas-API
updated
from 756a4a to 4fc989
Submodule Canvas-Server
updated
from 0231ab to af3852
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Dueris MC <[email protected]> | ||
Date: Thu, 2 Nov 2023 02:14:27 +0000 | ||
Subject: [PATCH] Fix Metrics for bstats | ||
|
||
|
||
diff --git a/src/main/java/com/destroystokyo/paper/Metrics.java b/src/main/java/com/destroystokyo/paper/Metrics.java | ||
index 8cde30544e14f8fc2dac32966ae3c21f8cf3a551..a186dea733a8db43c429a67a6dbb66121b8f1b8c 100644 | ||
--- a/src/main/java/com/destroystokyo/paper/Metrics.java | ||
+++ b/src/main/java/com/destroystokyo/paper/Metrics.java | ||
@@ -593,7 +593,7 @@ public class Metrics { | ||
boolean logFailedRequests = config.getBoolean("logFailedRequests", false); | ||
// Only start Metrics, if it's enabled in the config | ||
if (config.getBoolean("enabled", true)) { | ||
- Metrics metrics = new Metrics("Purpur", serverUUID, logFailedRequests, Bukkit.getLogger()); // Pufferfish // Purpur | ||
+ Metrics metrics = new Metrics("Canvas", serverUUID, logFailedRequests, Bukkit.getLogger()); // Pufferfish // Purpur // Canvas | ||
|
||
metrics.addCustomChart(new Metrics.SimplePie("minecraft_version", () -> { | ||
String minecraftVersion = Bukkit.getVersion(); | ||
@@ -603,7 +603,7 @@ public class Metrics { | ||
|
||
metrics.addCustomChart(new Metrics.SingleLineChart("players", () -> Bukkit.getOnlinePlayers().size())); | ||
metrics.addCustomChart(new Metrics.SimplePie("online_mode", () -> Bukkit.getOnlineMode() ? "online" : (io.papermc.paper.configuration.GlobalConfiguration.get().proxies.isProxyOnlineMode() ? "bungee" : "offline"))); // Purpur | ||
- metrics.addCustomChart(new Metrics.SimplePie("purpur_version", () -> (org.bukkit.craftbukkit.Main.class.getPackage().getImplementationVersion() != null) ? org.bukkit.craftbukkit.Main.class.getPackage().getImplementationVersion() : "unknown")); // Purpur | ||
+ metrics.addCustomChart(new Metrics.SimplePie("canvas_version", () -> (org.bukkit.craftbukkit.Main.class.getPackage().getImplementationVersion() != null) ? org.bukkit.craftbukkit.Main.class.getPackage().getImplementationVersion() : "unknown")); // Purpur // Canvas | ||
|
||
metrics.addCustomChart(new Metrics.DrilldownPie("java_version", () -> { | ||
Map<String, Map<String, Integer>> map = new HashMap<>(); |