Ability to listen to org.bukkit.event.Event (so all events) with a Listener

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • CraftBukkit version git-Spigot-a19903d-5b74714 (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)
    • Yes

      Adding the possibility to register a Listener that listens to all Events.
      For example by adding another HandlerList in the SimplePluginManager of Bukkit that is only for the abstract Event class

      import org.bukkit.event.*
      
      public class GlobalEventListener implements Listener {
      
        @EventHandler
        public void onEvent(Event event) {
          // Do some stuff with the event called
        }
      
      }

      This can help on certain applications that got for example a module system on their own to provide the ability to hot load certain features or remove them completely or just update them.

            Assignee:
            Unassigned
            Reporter:
            Lauriichan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: