InteractionVisualizer icon indicating copy to clipboard operation
InteractionVisualizer copied to clipboard

Use ignoreCancelled instead of checking it manually

Open Phoenix616 opened this issue 1 year ago • 0 comments

This moves all event.isCancelled() checks to ignoreCancelled = true values on the @EventHandler annotation. This not only makes the code cleaner but also slightly improves performance of all those listeners as this can now be directly checked by the PluginManager when choosing the Listeners to forward Events to instead of having to first call the listener method handle.

Phoenix616 avatar Feb 07 '24 22:02 Phoenix616