diff --git a/src/main/java/net/william278/huskhomes/gui/SavedPositionMenu.java b/src/main/java/net/william278/huskhomes/gui/SavedPositionMenu.java index 1628d18..c036dc5 100644 --- a/src/main/java/net/william278/huskhomes/gui/SavedPositionMenu.java +++ b/src/main/java/net/william278/huskhomes/gui/SavedPositionMenu.java @@ -110,8 +110,12 @@ private StaticGuiElement getPositionButton(@NotNull SavedPosition position) { }, getLegacyText("[" + position.meta.name + "](#00fb9a)"), getLegacyText("&7ℹ " + (position.meta.description.isBlank() - ? getLocale("item_no_description").orElse("N/A") - : position.meta.description))); + ? huskHomesAPI.getRawLocale("item_no_description").orElse("N/A") + : position.meta.description)), + " ", + getLegacyText("[Left Click:](#00fb9a) [Teleport](gray)"), + getLegacyText("[Right Click:](#00fb9a) [Edit](gray)"), + getLegacyText("[Shift Click:](#00fb9a) [Set icon](gray)")); } /** @@ -127,6 +131,13 @@ private Optional getPositionMaterial(@NotNull SavedPosition position) return Optional.empty(); } + /** + * Set the material to use for a {@link SavedPosition} and update it in the database + * + * @param position The saved position + * @param material The {@link Material} to use + * @return A future that completes when the saved position has been updated + */ private CompletableFuture setPositionMaterial(@NotNull SavedPosition position, @NotNull Material material) { final PositionMeta meta = position.meta;