From 7f50acf06161cd07b5c3c7670f77f56bb827cede Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 10 Oct 2020 07:08:37 +1300 Subject: [PATCH] Remove newlines from custom disguise saving --- src/main/java/me/libraryaddict/disguise/DisguiseAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java b/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java index e44fcdce..48cfaa37 100644 --- a/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java +++ b/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java @@ -56,7 +56,7 @@ public class DisguiseAPI { } ConfigurationSection section = configuration.getConfigurationSection("Disguises"); - section.set(disguiseName, disguiseInfo); + section.set(disguiseName, disguiseInfo.replace("\n", "\\n").replace("\r", "\\r")); configuration.save(disguisesFile);