mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-30 20:39:53 -05:00
Add Prefix Placeholder
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user