add a small tip

Former-commit-id: 4230efdded98eacce16ffe141f999844b0de65d3
This commit is contained in:
Ghost_chu committed 2018-08-02 20:17:16 +08:00
1 parent b92b4aef09
commit 6bc931e21d
2 files changed
+2 -3

No files matched your search

@@ -660,7 +660,6 @@ public class Util {
finalItemdata += "\n";
List<String> a = new ArrayList<>();
List<Integer> b = new ArrayList<>();
a.addAll(Itemenchs.keySet());
b.addAll(Itemenchs.values());
for (int i = 0; i < a.size(); i++) {
@@ -672,7 +671,7 @@ public class Util {
finalItemdata += ChatColor.DARK_PURPLE +""+ ChatColor.ITALIC + string + "\n";
}
}
TextComponent normalmessage = new TextComponent(normalText);
TextComponent normalmessage = new TextComponent(normalText+" "+MsgUtil.getMessage("menu.preview"));
ComponentBuilder cBuilder = new ComponentBuilder(finalItemdata);
HoverEvent he = new HoverEvent(HoverEvent.Action.SHOW_TEXT, cBuilder.create());
normalmessage.setHoverEvent(he);
+1 -1
View File
@@ -52,10 +52,10 @@ menu:
sell-tax-self: "&aYou own this shop so you don't pay taxes."
enchants: "&5Enchants"
stored-enchants: "&5Stored Enchants"
shop-information: "&aShop Information:"
owner: "&aOwner: {0}"
item: "&aItem: &e{0}"
preview: "&b[Preview Item]"
space: "&aSpace: &e{0}"
stock: "&aStock &e{0}"
price-per: "&aPrice per &e{0} &a- &e{1}"