diff --git a/pom.xml b/pom.xml
index 4616d7c..8de7c78 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
cn.lunadeer
MiniPlayerTitle
- 4.6.1
+ 4.6.2
jar
MiniPlayerTitle
diff --git a/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleCard.java b/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleCard.java
index 1e8262a..3a62fce 100644
--- a/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleCard.java
+++ b/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleCard.java
@@ -4,7 +4,6 @@ import cn.lunadeer.minecraftpluginutils.Notification;
import cn.lunadeer.miniplayertitle.dtos.PlayerTitleDTO;
import cn.lunadeer.miniplayertitle.dtos.TitleDTO;
import cn.lunadeer.miniplayertitle.dtos.TitleShopDTO;
-import cn.lunadeer.miniplayertitle.tuis.MyTitles;
import net.kyori.adventure.text.Component;
import org.bukkit.ChatColor;
import org.bukkit.Material;
@@ -65,6 +64,7 @@ public class TitleCard implements Listener {
}
use(player, item);
player.getInventory().removeItem(item);
+ event.setCancelled(true);
}
private static ItemStack create(@NotNull TitleShopDTO saleInfo) {
diff --git a/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleManage.java b/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleManage.java
index 573df95..c136dd3 100644
--- a/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleManage.java
+++ b/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleManage.java
@@ -5,13 +5,11 @@ import cn.lunadeer.miniplayertitle.MiniPlayerTitle;
import cn.lunadeer.miniplayertitle.dtos.PlayerInfoDTO;
import cn.lunadeer.miniplayertitle.dtos.PlayerTitleDTO;
import cn.lunadeer.miniplayertitle.dtos.TitleDTO;
-import cn.lunadeer.miniplayertitle.dtos.TitleShopDTO;
import cn.lunadeer.miniplayertitle.tuis.AllTitles;
import cn.lunadeer.miniplayertitle.tuis.MyTitles;
import net.kyori.adventure.text.Component;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
-import org.bukkit.inventory.ItemStack;
import static cn.lunadeer.miniplayertitle.commands.Apis.updateName;
diff --git a/src/main/java/cn/lunadeer/miniplayertitle/events/SpigotChat.java b/src/main/java/cn/lunadeer/miniplayertitle/events/SpigotChat.java
index 9c21623..2f3d64d 100644
--- a/src/main/java/cn/lunadeer/miniplayertitle/events/SpigotChat.java
+++ b/src/main/java/cn/lunadeer/miniplayertitle/events/SpigotChat.java
@@ -1,8 +1,6 @@
package cn.lunadeer.miniplayertitle.events;
-import cn.lunadeer.minecraftpluginutils.Notification;
import cn.lunadeer.miniplayertitle.MiniPlayerTitle;
-import net.kyori.adventure.text.Component;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerChatEvent;