Show Plugins Event Listeners under Combined Total in Timings

This commit is contained in:
Aikar 2020-06-09 21:48:35 -04:00
parent edc73f0d2b
commit 3028a91f26

View file

@ -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