From 3028a91f26ec2a46b5ad089e3e98690030d68fcd Mon Sep 17 00:00:00 2001 From: Aikar <aikar@aikar.co> Date: Tue, 9 Jun 2020 21:48:35 -0400 Subject: [PATCH] Show Plugins Event Listeners under Combined Total in Timings --- Spigot-API-Patches/Timings-v2.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spigot-API-Patches/Timings-v2.patch b/Spigot-API-Patches/Timings-v2.patch index dd8d6cf928..955c6b5a30 100644 --- a/Spigot-API-Patches/Timings-v2.patch +++ b/Spigot-API-Patches/Timings-v2.patch @@ -243,8 +243,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + final String eventName = eventClass.getSimpleName(); + boolean verbose = "BlockPhysicsEvent".equals(eventName); -+ this.timings = Timings.ofSafe(plugin.getName(), (verbose ? "## " : "") + -+ "Event: " + id + " (" + eventName + ")", null); ++ this.timings = Timings.ofSafe(plugin, (verbose ? "## " : "") + ++ "Event: " + id + " (" + eventName + ")"); + } + + @Override