registerEvents not working

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

  1. Offline

    WhiteShiro

    Code:
    @Override
       
        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

    Legendary_zotar

    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

    mAndAle


    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