Fixed confirm delete-all homes/warps button tooltip missing

This commit is contained in:
William278 committed 2021-03-27 12:56:40 +00:00
1 parent 63521a401f
commit 73fbefde8c
1 file changed
+1 -1
@@ -82,7 +82,7 @@ public class SettingHandler {
BaseComponent[] buttonComponents = new MineDown(MessageManager.getRawMessage("delete_confirmation_button")).urlDetection(false).toComponent();
for (BaseComponent baseComponent : buttonComponents) {
baseComponent.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, ("/huskhomes:" + commandType + " all confirm")));
baseComponent.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new Text(new ComponentBuilder("delete_confirmation_button_tooltip").color(ChatColor.RED).italic(false).create())));
baseComponent.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new Text(new ComponentBuilder(MessageManager.getRawMessage("delete_confirmation_button_tooltip")).color(ChatColor.RED).italic(false).create())));
}
return buttonComponents;
}