From 17e612a708f76dacb0749f97cf935e0de6db4d14 Mon Sep 17 00:00:00 2001 From: ayunami2000 Date: Sat, 23 Jul 2022 21:51:10 -0400 Subject: [PATCH] Escape section symbols so nothing freaks out --- .../src/main/java/net/md_5/bungee/eaglercraft/AuthSystem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eaglercraftbungee/src/main/java/net/md_5/bungee/eaglercraft/AuthSystem.java b/eaglercraftbungee/src/main/java/net/md_5/bungee/eaglercraft/AuthSystem.java index f26dede..0f57b64 100644 --- a/eaglercraftbungee/src/main/java/net/md_5/bungee/eaglercraft/AuthSystem.java +++ b/eaglercraftbungee/src/main/java/net/md_5/bungee/eaglercraft/AuthSystem.java @@ -100,7 +100,7 @@ public class AuthSystem { if (lines.length == 1 && lines[0].isEmpty()) return; for (String line : lines) { String[] pieces = line.split("\u0000"); - cache.put(pieces[0], new AuthData(pieces[2], new HashSet<>(Arrays.asList(pieces[1].split("§"))))); + cache.put(pieces[0], new AuthData(pieces[2], new HashSet<>(Arrays.asList(pieces[1].split("\u00A7"))))); } database.clear(); @@ -120,7 +120,7 @@ public class AuthSystem { AuthData entry = database.get(username); out.append(username); out.append("\u0000"); - out.append(String.join("§", entry.ips)); + out.append(String.join("\u00A7", entry.ips)); out.append("\u0000"); out.append(entry.passHash); out.append("\n");