If the Problem isn`t solved, i would solfe it like this:
Component comp = Component.text(config.getString("Messages.Join").replace("&", "§"));
If you also want to replace %player% with the playername:
String playername = "lol";
Component comp =...
Hey, you can also do this:
@EventHandler
public void onPlayerChat(AsyncPlayerChatEvent e) {
String message = e.getMessage().replace("&", "§");
e.setMessage(message);
}
if its easyer.
SimpleRanks is a easy way for you to create/manage/design your own Ranks on your Minecraft Server. There are so many things you can do!
Download:
https://hangar.papermc.io/Silal/SimpleRanks
Wiki:
https://hangar.papermc.io/Silal/SimpleRanks/pages/Wiki
Features:
custom ranks
custom chat format...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.