diff --git a/src/main/java/com/Acrobot/Breeze/Configuration/FieldParser.java b/src/main/java/com/Acrobot/Breeze/Configuration/FieldParser.java index 74298f2..4cce652 100644 --- a/src/main/java/com/Acrobot/Breeze/Configuration/FieldParser.java +++ b/src/main/java/com/Acrobot/Breeze/Configuration/FieldParser.java @@ -19,7 +19,9 @@ public class FieldParser { StringBuilder builder = new StringBuilder(50); if (field.isAnnotationPresent(ConfigurationComment.class)) { - builder.append("# ").append(field.getAnnotation(ConfigurationComment.class).value()).append('\n'); + for (String commentLine : field.getAnnotation(ConfigurationComment.class).value().split("\n")) { + builder.append("# ").append(commentLine).append('\n'); + } } ValueParser parser = Configuration.getParser(field); diff --git a/src/main/java/com/Acrobot/ChestShop/Configuration/Properties.java b/src/main/java/com/Acrobot/ChestShop/Configuration/Properties.java index 1fc8129..2edbf1c 100644 --- a/src/main/java/com/Acrobot/ChestShop/Configuration/Properties.java +++ b/src/main/java/com/Acrobot/ChestShop/Configuration/Properties.java @@ -197,7 +197,9 @@ public class Properties { @ConfigurationComment("This makes sure that the UUIDs of player shop accounts match the server's online-mode setting. Disabling this might lead to issues with offline players and is therefore unsupported!") public static boolean ENSURE_CORRECT_PLAYERID = true; - @ConfigurationComment("This regexp validates the name of the player. If the name doesn't match, the player will neither be able to create a valid shop sign, nor buy/sell from a shop. Note to Bedrock players: If you have Floodgate on your server, you should set this regexp to ^\\\\*?\\\\w+$ and ENSURE_CORRECT_PLAYERID to false") + @ConfigurationComment("This regexp validates the name of the player. If the name doesn't match, the player will neither be able to create a valid shop sign, nor buy/sell from a shop.\n" + + "Note for Bedrock support: If you have Floodgate on your server, you should set this regexp to ^\\\\*?\\\\w+$ and ENSURE_CORRECT_PLAYERID to false\n" + + "If your Floodgate prefix is not *, change the first * in the regexp (the one before the question mark) to whatever your prefix is.") public static String VALID_PLAYERNAME_REGEXP = "^\\\\w+$"; @PrecededBySpace