Spigot Welcome Message 1.0.3

Welcome Message

  1. delli submitted a new resource:

    Welcome Message - Welcome Message

    Read more about this resource...
     
  2. Im guessing you are new to coding plugins.
     
  3. clip

    Benefactor

    You should store the message as a list in your config:

    Code (Text):
    config.addDefault("join_message", Arrays.asList(new String[] { "line 1", "line 2", "line 3"}));
    Then you just iterate through the list and send each line with a for loop:

    Code (Text):
    for (String line : getConfig().getStringList("join_message") {
        player.sendMessage(line);
    }
    This allows unlimited lines instead of your hardcoded 6.
     
    • Winner Winner x 3
  4. Yes you're right.

    Okay thank you for the help, I'll try this later.