Solved Translate "%player%" into p.getDisplayname()

Discussion in 'Spigot Plugin Development' started by GoRoK, Jul 1, 2016.

Thread Status:
Not open for further replies.
  1. Well that could be a pretty noob questions, already tried with replaceChar and replaceAll.
     
  2. Try replace...
     
    • Funny Funny x 1
  3. You may want to look into using a StringBuilder as well. But as _Cory_ said, use replace() instead of replaceAll(). You'll need to use String.split(" ") to separate the words, if this is a configurable message setting.
     
  4. Nah you don't need to split the message. You can just set the string to the replaced version of it.
     
Thread Status:
Not open for further replies.