Implemented \n

This commit is contained in:
RayzsYT committed 2024-05-14 15:30:22 +02:00
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);