Help!

Discussion in 'Plugin Development' started by CryptecPel, Aug 21, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    CryptecPel

    I just made a plugin that perfectly works fine no errors at all or anything everything works fine but when I join the server nothing happens the plugin is there, its just that the plugin doesn't do anything as if it's an empty plugin. Does anyone know the fix to this?
     
  2. Offline

    KarimAKL

    @CryptecPel What's it supposed to do? You haven't shown us any code.
     
    pietermantel likes this.
  3. Offline

    CryptecPel

    I apologize, Here is the code. Also I made the plugin.yml It's just not opened in the tab.
     

    Attached Files:

  4. Offline

    Wick

    You never registered your event listener
    Code:
    getServer().getPluginManager().registerEvents(new MyListener(), <main plugin instance>);
     
  5. Offline

    CryptecPel

    Sorry to bother, I'm new to coding but which line do i add this code in?
     
  6. Offline

    Wick

    Your onEnable method is best for registering listeners
     
  7. Offline

    KarimAKL

    @CryptecPel
    1. You shouldn't log your plugin, Bukkit does that already.
    2. As mentioned above, you haven't registered your listener. I'd recommend reading this.
     
    CryptecPel likes this.
  8. Offline

    Strahan

    Agreed, and even if you do want to clutter the log with messages, use the logger. That's what it is for.
     
Thread Status:
Not open for further replies.

Share This Page