I've been wondering how people do this: Code (Text): onFirstJoin: broadcastMessage: <Player> "Has joined for the first time!" How are do you make this variable <Player> in your config? Note: I'm not sure if that layout above was correct it was more of an example
umm Code (Java): getConfig().getString("onFirstJoin.broadcastMessage").replace("<Player>",player.getName());
you should use broadcastMessage: "<Player> Has joined for the first time!" instead of broadcastMessage: <Player> "Has joined for the first time!"
I love how people completely ignore what the guy needed help with & start finding mistakes in his work. He litterly said that there are mistakes in the layout & its just an example.
Your question has already been answered, so I would just spam this thread? If you aren't here to get your mistakes corrected then you should learn what programming forums are for.