1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Add unicode arrow to the message

This commit is contained in:
Martin Brom 2021-05-06 18:15:37 +02:00
parent e7ae14beaf
commit 8ac9160e37
2 changed files with 21 additions and 16 deletions

View File

@ -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<Boolean> {
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<String> 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);
}
}

View File

@ -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'