Show Plugins Event Listeners under Combined Total in Timings

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

View file

@ -243,8 +243,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ +
+ final String eventName = eventClass.getSimpleName(); + final String eventName = eventClass.getSimpleName();
+ boolean verbose = "BlockPhysicsEvent".equals(eventName); + boolean verbose = "BlockPhysicsEvent".equals(eventName);
+ this.timings = Timings.ofSafe(plugin.getName(), (verbose ? "## " : "") + + this.timings = Timings.ofSafe(plugin, (verbose ? "## " : "") +
+ "Event: " + id + " (" + eventName + ")", null); + "Event: " + id + " (" + eventName + ")");
+ } + }
+ +
+ @Override + @Override