Remove newlines from custom disguise saving

This commit is contained in:
libraryaddict 2020-10-10 07:08:37 +13:00
parent 5019cb985b
commit 7f50acf061

View File

@ -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);