From cc15781b440b07baf731fcbb2cda7f169e7e8371 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 17 Feb 2024 09:32:26 +0100 Subject: [PATCH] Hotfix Config --- .../src/de/steamwar/bausystem/configplayer/Config.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/configplayer/Config.java b/BauSystem_Main/src/de/steamwar/bausystem/configplayer/Config.java index 2f929687..045eb518 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/configplayer/Config.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/configplayer/Config.java @@ -97,7 +97,7 @@ public class Config implements Listener { public void saveAll() { playerConfigurations.forEach((uuid, yapionObject) -> { - String string = yapionObject.toYAPION(new StringOutput()).getResult(); + String string = yapionObject.toYAPION(new StringOutput()).getResult().replaceAll("\\+", "\\"); UserConfig.updatePlayerConfig(uuid, "bausystem", string); }); playerConfigurations.clear(); @@ -112,7 +112,7 @@ public class Config implements Listener { UUID uuid = player.getUniqueId(); if (playerConfigurations.containsKey(uuid)) { YAPIONObject yapionObject = playerConfigurations.get(uuid); - String string = yapionObject.toYAPION(new StringOutput()).getResult(); + String string = yapionObject.toYAPION(new StringOutput()).getResult().replaceAll("\\+", "\\"); UserConfig.updatePlayerConfig(uuid, "bausystem", string); } }