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:
parent
e7ae14beaf
commit
8ac9160e37
@ -1,5 +1,6 @@
|
|||||||
package io.github.thebusybiscuit.slimefun4.core.guide.options;
|
package io.github.thebusybiscuit.slimefun4.core.guide.options;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
@ -35,8 +36,12 @@ public class LearningAnimationOption implements SlimefunGuideOption<Boolean> {
|
|||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
} else {
|
} else {
|
||||||
String enabled = getSelectedOption(p, guide).orElse(true) ? "enabled" : "disabled";
|
String enabled = getSelectedOption(p, guide).orElse(true) ? "enabled" : "disabled";
|
||||||
ItemStack item = new CustomItem(Material.PAPER, SlimefunPlugin.getLocalization().getMessages(
|
List<String> lore = SlimefunPlugin.getLocalization().getMessages(
|
||||||
p, "guide.options.learning-animation." + enabled));
|
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);
|
return Optional.of(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,21 +94,21 @@ guide:
|
|||||||
options:
|
options:
|
||||||
learning-animation:
|
learning-animation:
|
||||||
enabled:
|
enabled:
|
||||||
- '&bLearning Animation: &aYes'
|
text:
|
||||||
- ''
|
- '&bLearning Animation: &aYes'
|
||||||
- '&7You can now toggle whether you'
|
- ''
|
||||||
- '&7will see information about your pondering in chat'
|
- '&7You can now toggle whether you'
|
||||||
- '&7upon researching an item.'
|
- '&7will see information about your pondering in chat'
|
||||||
- ''
|
- '&7upon researching an item.'
|
||||||
- '&7\u21E8 &eClick to disable your learning animation'
|
click: '&eClick to disable your learning animation'
|
||||||
disabled:
|
disabled:
|
||||||
- '&bLearning Animation: &4No'
|
text:
|
||||||
- ''
|
- '&bLearning Animation: &4No'
|
||||||
- '&7You can now toggle whether you'
|
- ''
|
||||||
- '&7will see information about your pondering in chat'
|
- '&7You can now toggle whether you'
|
||||||
- '&7upon researching an item.'
|
- '&7will see information about your pondering in chat'
|
||||||
- ''
|
- '&7upon researching an item.'
|
||||||
- '&7\\u21E8 &eClick to enable your learning animation'
|
click: '&eClick to enable your learning animation'
|
||||||
|
|
||||||
title:
|
title:
|
||||||
main: 'Slimefun Guide'
|
main: 'Slimefun Guide'
|
||||||
|
Loading…
Reference in New Issue
Block a user