Add Prefix Placeholder

This commit is contained in:
RayzsYT committed 2024-05-23 01:17:12 +02:00
1 parent 561f84d56f
commit 29737d93ed
1 file changed
+1 -1
@@ -102,7 +102,7 @@ public class MessageTranslator {
}
public static String replaceMessage(Object playerObj, String text) {
text = text.replace("&", "§").replace("%current_version%", Storage.CURRENT_VERSION).replace("%newest_version%", Storage.NEWER_VERSION).replace("\\n", "\n");
text = text.replace("&", "§").replace("%prefix%", Storage.ConfigSections.Messages.PREFIX.PREFIX).replace("%current_version%", Storage.CURRENT_VERSION).replace("%newest_version%", Storage.NEWER_VERSION).replace("\\n", "\n");
return !placeholderSupport || playerObj == null || Reflection.isProxyServer() ? text : PlaceholderReplacer.replace(playerObj, text);
}