mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Update home list locales, change toggle button into make public/private buttons
This commit is contained in:
1 parent
374115c68b
commit
12020ca70a
3 files changed
+13
-8
No files matched your search
@@ -329,7 +329,8 @@ public class EditHomeCommand extends CommandBase implements TabCompletable, Cons
|
||||
final String escapedName = Locales.escapeMineDown(formattedName);
|
||||
plugin.getLocales().getRawLocale("edit_home_menu_manage_buttons", escapedName,
|
||||
showPrivacyToggleButton ? plugin.getLocales()
|
||||
.getRawLocale("edit_home_menu_toggle_privacy_button", escapedName)
|
||||
.getRawLocale("edit_home_menu_privacy_button_"
|
||||
+ (home.isPublic ? "private" : "public"), escapedName)
|
||||
.orElse("") : "")
|
||||
.map(MineDown::new).ifPresent(this::add);
|
||||
plugin.getLocales().getLocale("edit_home_menu_meta_edit_buttons",
|
||||
|
||||
Reference in new issue
Block a user