diff --git a/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java b/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java index 4bff5d18d9..800a34710c 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java +++ b/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java @@ -15,7 +15,10 @@ import org.jetbrains.annotations.Nullable; public class FileConfigurationOptions extends MemoryConfigurationOptions { private List header = Collections.emptyList(); private List footer = Collections.emptyList(); - private boolean parseComments = true; + // Paper start - add system prop for comment parsing + private static final boolean PAPER_PARSE_COMMENTS_BY_DEFAULT = Boolean.parseBoolean(System.getProperty("Paper.parseYamlCommentsByDefault", "true")); + private boolean parseComments = PAPER_PARSE_COMMENTS_BY_DEFAULT; + // Paper end protected FileConfigurationOptions(@NotNull MemoryConfiguration configuration) { super(configuration);