Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by GoRoK, Jul 1, 2016.
Well that could be a pretty noob questions, already tried with replaceChar and replaceAll.
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.
Nah you don't need to split the message. You can just set the string to the replaced version of it.