mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Adjust description formatting, remove default descriptions, add item_no_description locale
This commit is contained in:
1 parent
12020ca70a
commit
22ba7b4cf0
7 files changed
+36
-20
No files matched your search
@@ -303,7 +303,7 @@ public class EditHomeCommand extends CommandBase implements TabCompletable, Cons
|
||||
plugin.getLocales().getLocale("edit_home_menu_description",
|
||||
home.meta.description.length() > 50
|
||||
? home.meta.description.substring(0, 49).trim() + "…" : home.meta.description,
|
||||
String.join("\n", home.meta.description.split("(?<=\\G.{40,}\\s)")))
|
||||
plugin.getLocales().formatDescription(home.meta.description))
|
||||
.ifPresent(this::add);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user