Doesn't send a message

Discussion in 'Plugin Development' started by Manujonex, Sep 3, 2020.

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

    Manujonex

    Hey, so I'm kinda new in Minecraft Java, and I've made a "Joinin Greetings" plugin, the one broadcast a message when a new player joins. It doesn't send any message when someone joins. There are not errors on console. mainclass.png
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    Manujonex

    What does it mean? I should put "true" or "false" or something like that?

    @timtower What does it mean? I should put "true" or "false" or something like that?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 3, 2020
  4. Offline

    timtower Administrator Administrator Moderator

  5. Offline

    Manujonex

    @timtower in this case, should the onLogin event be put into the OnPlayerJoin event?
     
  6. Offline

    timtower Administrator Administrator Moderator

    @Manujonex No, you have no @EventHandler or
    getServer().getPluginManager().registerEvents(this, this)
     
  7. Offline

    Manujonex

    It just doesn't send a message when I join the server.

    code.png
     

    Attached Files:

  8. Offline

    timtower Administrator Administrator Moderator

    @Manujonex You are still missing the
    getServer().getPluginManager().registerEvents(this, this)
     
  9. Offline

    Manujonex

  10. Offline

    timtower Administrator Administrator Moderator

    Then please read the content of the link that I posted.
     
Thread Status:
Not open for further replies.

Share This Page