mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-12-01 12:59:43 -05:00
Change PlayerName Placeholder
This commit is contained in:
1 parent
0f04785081
commit
164f7ffd38
1 file changed
+1
-1
@@ -103,7 +103,7 @@ public class MessageTranslator {
|
||||
|
||||
public static String replaceMessage(Object playerObj, String text) {
|
||||
CommandSender sender = playerObj instanceof CommandSender ? (CommandSender) playerObj : new CommandSender(playerObj);
|
||||
text = text.replace("%player%", sender.getName()).replace("&", "§").replace("%prefix%", Storage.ConfigSections.Messages.PREFIX.PREFIX).replace("%current_version%", Storage.CURRENT_VERSION).replace("%newest_version%", Storage.NEWER_VERSION).replace("\\n", "\n");
|
||||
text = text.replace("%executor%", sender.getName()).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