From 19f6d6eacf3df61c3079d342482df3ae4a2c3e15 Mon Sep 17 00:00:00 2001 From: Abhiram555 <63419731+abhithedev200@users.noreply.github.com> Date: Thu, 26 Jan 2023 21:34:15 +0530 Subject: Add Proxy support to the cofl mod (#85) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Implement basic proxy functionality * Finish the api key management * Finished the hypixel api key support * Fixed a check, for some reason intelij didn't update my code * Only upload request if the upload is enabled, else just do the request Co-authored-by: Äkwav <16632490+Ekwav@users.noreply.github.com> Co-authored-by: Äkwav <16632490+Ekwav@users.noreply.github.com> --- src/main/java/de/torui/coflsky/utils/ChatUtils.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/main/java/de/torui/coflsky/utils/ChatUtils.java (limited to 'src/main/java/de/torui/coflsky/utils') diff --git a/src/main/java/de/torui/coflsky/utils/ChatUtils.java b/src/main/java/de/torui/coflsky/utils/ChatUtils.java new file mode 100644 index 0000000..766fb2c --- /dev/null +++ b/src/main/java/de/torui/coflsky/utils/ChatUtils.java @@ -0,0 +1,10 @@ +package de.torui.coflsky.utils; + +public class ChatUtils { + + public static String cleanColour(String in) { + return in.replaceAll("(?i)\\u00A7.", ""); + } + + +} -- cgit