From f0c17f71187c998069a9d5b9127f2a3c77277a5c Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Thu, 2 Aug 2018 19:20:09 +0800 Subject: [PATCH] add no other special buff item normaly show Former-commit-id: 4a675adfd80049dd6a5184b6b0af693bd18394fd --- src/main/java/org/maxgamer/quickshop/Util/Util.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/maxgamer/quickshop/Util/Util.java b/src/main/java/org/maxgamer/quickshop/Util/Util.java index 8fd4557aa..230207c95 100644 --- a/src/main/java/org/maxgamer/quickshop/Util/Util.java +++ b/src/main/java/org/maxgamer/quickshop/Util/Util.java @@ -621,6 +621,7 @@ public class Util { } public static void sendItemholochat(ItemStack itemStack, Player player, String normalText) { + try { String Itemname = null; List Itemlore = new ArrayList<>(); String finalItemdata = null; @@ -676,6 +677,9 @@ public class Util { HoverEvent he = new HoverEvent(HoverEvent.Action.SHOW_TEXT, cBuilder.create()); normalmessage.setHoverEvent(he); player.spigot().sendMessage(normalmessage); + }catch (Exception e) { + player.sendMessage(normalText); + } } private static String formatEnchLevel(Integer level) { switch (level) {