Join/Left event error in Console

Discussion in 'Plugin Development' started by Juflos, Sep 21, 2019.

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


    I just wanted to program a PLAYERJoin / QuitEvent ..
    In my opinion everything is correct, but I get the following error in the console:

    Here is my code:

    I do not know what the mistake is ...
    I also registered the event as normal in the Main.

    Does anybody have a solution?
  2. Online

    timtower Moderator Moderator

    Strahan likes this.
  3. Offline


    Can you post your config file?
    Edit: you have to put a path for getting a string from a config file
    Example: "String Example"
  4. Offline


    Also there is no point to calling e.getJoinMessage(); or e.getQuitMessage(); if you don't plan to do something with the result. You should not be embedding the color character either, the ChatColor enum exists for a reason. You especially should not be using color codes in as config paths.
Thread Status:
Not open for further replies.

Share This Page