From 8ac9160e37bede61b7e2c6087a76d45bec732962 Mon Sep 17 00:00:00 2001 From: Martin Brom Date: Thu, 6 May 2021 18:15:37 +0200 Subject: [PATCH] Add unicode arrow to the message --- .../options/LearningAnimationOption.java | 9 ++++-- src/main/resources/languages/en/messages.yml | 28 +++++++++---------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/core/guide/options/LearningAnimationOption.java b/src/main/java/io/github/thebusybiscuit/slimefun4/core/guide/options/LearningAnimationOption.java index 6ef24e6f7..a36a93578 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/core/guide/options/LearningAnimationOption.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/core/guide/options/LearningAnimationOption.java @@ -1,5 +1,6 @@ package io.github.thebusybiscuit.slimefun4.core.guide.options; +import java.util.List; import java.util.Optional; import javax.annotation.Nonnull; @@ -35,8 +36,12 @@ public class LearningAnimationOption implements SlimefunGuideOption { return Optional.empty(); } else { String enabled = getSelectedOption(p, guide).orElse(true) ? "enabled" : "disabled"; - ItemStack item = new CustomItem(Material.PAPER, SlimefunPlugin.getLocalization().getMessages( - p, "guide.options.learning-animation." + enabled)); + List lore = SlimefunPlugin.getLocalization().getMessages( + p, "guide.options.learning-animation." + enabled + ".text"); + lore.add(""); + lore.add("&7\u21E8 " + SlimefunPlugin.getLocalization().getMessage( + p, "guide.options.learning-animation." + enabled + ".click")); + ItemStack item = new CustomItem(Material.PAPER, lore); return Optional.of(item); } } diff --git a/src/main/resources/languages/en/messages.yml b/src/main/resources/languages/en/messages.yml index 367b054bd..037011c05 100644 --- a/src/main/resources/languages/en/messages.yml +++ b/src/main/resources/languages/en/messages.yml @@ -94,21 +94,21 @@ guide: options: learning-animation: enabled: - - '&bLearning Animation: &aYes' - - '' - - '&7You can now toggle whether you' - - '&7will see information about your pondering in chat' - - '&7upon researching an item.' - - '' - - '&7\u21E8 &eClick to disable your learning animation' + text: + - '&bLearning Animation: &aYes' + - '' + - '&7You can now toggle whether you' + - '&7will see information about your pondering in chat' + - '&7upon researching an item.' + click: '&eClick to disable your learning animation' disabled: - - '&bLearning Animation: &4No' - - '' - - '&7You can now toggle whether you' - - '&7will see information about your pondering in chat' - - '&7upon researching an item.' - - '' - - '&7\\u21E8 &eClick to enable your learning animation' + text: + - '&bLearning Animation: &4No' + - '' + - '&7You can now toggle whether you' + - '&7will see information about your pondering in chat' + - '&7upon researching an item.' + click: '&eClick to enable your learning animation' title: main: 'Slimefun Guide'