{username} in config to player.getName

Discussion in 'Spigot Plugin Development' started by Jaffaaaa, Aug 8, 2018.

Thread Status:
Not open for further replies.
  1. I want people to be able to go into my config and change a message which includes player.getName() using {username}.
    Example: "{username} just refered..." to turn into "player.getName() + "just refered...""

    How do I do this?
     
  2. string.Replace();
    Try handling it yourself from here, if you don't succeed please reply again.
     
  3. Fixed it, thanks :)
     
    • Like Like x 1
Thread Status:
Not open for further replies.