mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-12-01 04:49:44 -05:00
Implemented \n
This commit is contained in:
1 parent
5b9a05ee1a
commit
e56b62ccbe
2 files changed
+2
-2
No files matched your search
@@ -20,7 +20,7 @@ public class Logger {
|
||||
public static void warning(String text) { send(Priority.WARNING, text); }
|
||||
|
||||
protected static void send(Priority priority, String text) {
|
||||
text = text.replace("%current_version%", Storage.CURRENT_VERSION_NAME).replace("%newest_version%", Storage.NEWEST_VERSION_NAME);
|
||||
text = text.replace("%current_version%", Storage.CURRENT_VERSION_NAME).replace("%newest_version%", Storage.NEWEST_VERSION_NAME).replace("\\n", "\n");
|
||||
|
||||
if(LOGGER == null) {
|
||||
System.out.println(text);
|
||||
|
||||
@@ -62,7 +62,7 @@ public class MessageTranslator {
|
||||
}
|
||||
|
||||
public static void send(Object target, String text) {
|
||||
text = text.replace("%current_version%", Storage.CURRENT_VERSION_NAME).replace("%newest_version%", Storage.NEWEST_VERSION_NAME);
|
||||
text = text.replace("%current_version%", Storage.CURRENT_VERSION_NAME).replace("%newest_version%", Storage.NEWEST_VERSION_NAME).replace("\\n", "\n");
|
||||
if(translator == null) {
|
||||
CommandSender sender = target instanceof CommandSender ? (CommandSender) target : new CommandSender(target);
|
||||
sender.sendMessage(text);
|
||||
|
||||
Reference in new issue
Block a user