mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Use method in Locales class for text truncation
This commit is contained in:
1 parent
34fdb88d5c
commit
121d93ab44
4 files changed
+4
-10
No files matched your search
@@ -227,8 +227,7 @@ public class EditHomeCommand extends SavedPositionCommand<Home> {
|
||||
|
||||
if (home.getMeta().getDescription().length() > 0) {
|
||||
plugin.getLocales().getLocale("edit_home_menu_description",
|
||||
home.getMeta().getDescription().length() > 50
|
||||
? home.getMeta().getDescription().substring(0, 49).trim() + "…" : home.getMeta().getDescription(),
|
||||
plugin.getLocales().truncateText(home.getMeta().getDescription(), 50),
|
||||
plugin.getLocales().wrapText(home.getMeta().getDescription(), 40))
|
||||
.ifPresent(this::add);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user