registerEvents not working

Discussion in 'Plugin Development' started by WhiteShiro, Jul 3, 2020.

  1. Offline


        public void onEnable() {
        getServer().getPluginManager().registerEvents(this, this);
    this is my on Enable, you cant really see it but the registerEvents is in red underline and it spits out a error while packaging. After that the events don't even work, I am using 1,15.
    Thanks in advance for any help
  2. Offline


    If this is in your main, does it implement Listener?
    And can you show us your entire class that has the Listener (be it main or another class)
  3. Offline


    since you have not shown the class (and the error) I assume that it is not implemented the Listener or not put an @EventHandler before your event or even not having done the event.

Share This Page