mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
New lists via PagineDown, update edithome locales
This commit is contained in:
1 parent
3651e1ea90
commit
423f18b2c3
20 files changed
+170
-413
No files matched your search
@@ -270,7 +270,9 @@ public class EditHomeCommand extends CommandBase implements TabCompletable, Cons
|
||||
.ifPresent(this::add);
|
||||
|
||||
if (home.meta.description.length() > 0) {
|
||||
final String escapedDescription = MineDown.escape(home.meta.description);
|
||||
final String escapedDescription = MineDown.escape(home.meta.description
|
||||
.replaceAll(Pattern.quote("("), "\\(")
|
||||
.replaceAll(Pattern.quote(")"), "\\)"));
|
||||
plugin.getLocales().getLocale("edit_home_menu_description",
|
||||
escapedDescription.length() > 50
|
||||
? escapedDescription.substring(0, 49).trim() + "…" : escapedDescription,
|
||||
|
||||
Reference in new issue
Block a user