Added tag feature

This commit is contained in:
Clément
2025-03-03 12:15:17 +01:00
parent 4b8adef72f
commit 5befdd3080
2 changed files with 8 additions and 1 deletions

View File

@@ -15,4 +15,8 @@ public class ANSIColor {
.replace("&y", GREY)
.replace("&n", RESET);
}
public static String tag(String message, String chatter){
return message.replaceAll("(@" + chatter + ")", "\u001B[44;30m$1\u001B[49;39m" );
}
}