diff --git a/pom.xml b/pom.xml
index 61cb6348ec..e08f143139 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
org.maxgamer
QuickShop
- 3.1.3.4
+ 3.1.3.5
diff --git a/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemDespawnEvent.java b/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemDespawnEvent.java
index d90c5cd77a..9e41ad24c0 100644
--- a/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemDespawnEvent.java
+++ b/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemDespawnEvent.java
@@ -61,7 +61,7 @@ public ShopDisplayItemDespawnEvent(
*/
@Deprecated
public ShopDisplayItemDespawnEvent(@NotNull Shop shop, @NotNull ItemStack itemStack) {
- this(shop, itemStack, DisplayType.fromID(QuickShop.instance.getConfig().getInt("shop.display-type")));
+ this(shop, itemStack, DisplayItem.getNowUsing());
}
@Override
diff --git a/src/main/java/org/maxgamer/quickshop/Util/MsgUtil.java b/src/main/java/org/maxgamer/quickshop/Util/MsgUtil.java
index 994683b428..00cc2cf1b5 100644
--- a/src/main/java/org/maxgamer/quickshop/Util/MsgUtil.java
+++ b/src/main/java/org/maxgamer/quickshop/Util/MsgUtil.java
@@ -19,6 +19,8 @@
package org.maxgamer.quickshop.Util;
+import com.bekvon.bukkit.residence.commands.message;
+import com.bekvon.bukkit.residence.commands.shop;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
@@ -151,15 +153,11 @@ public static boolean flush(@NotNull OfflinePlayer p) {
} catch (ArrayIndexOutOfBoundsException e2) {
p.getPlayer().sendMessage(msg);
}
- plugin.getDatabaseHelper().cleanMessageForPlayer(pName);
- msgs.clear();
- return true;
- } else {
- return false;
- }
+ }
}
plugin.getDatabaseHelper().cleanMessageForPlayer(pName);
msgs.clear();
+ return true;
}
}
return false;