Add editwarp and associated locales

This commit is contained in:
William committed 2022-08-17 23:09:04 +01:00
1 parent d45fef7b6b
commit 629188a6c2
5 files changed
+253 -11

No files matched your search

@@ -93,6 +93,15 @@ public class Locales {
return rawLocale;
}
/**
* Escape a string from {@link MineDown} formatting for use in a MineDown-formatted locale
* <p>
* Although MineDown provides {@link MineDown#escape(String)}, that method fails to escape events
* properly when using the escaped string in a replacement, so this is used instead
*
* @param string The string to escape
* @return The escaped string
*/
@NotNull
private static String escapeMineDown(@NotNull String string) {
final StringBuilder value = new StringBuilder();