diff --git a/pom.xml b/pom.xml
index 6b28504..d63d07b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
cn.lunadeer
MiniPlayerTitle
- 4.3.0
+ 4.3.1
jar
MiniPlayerTitle
diff --git a/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleManage.java b/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleManage.java
index 2ae69e9..5f7c6e4 100644
--- a/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleManage.java
+++ b/src/main/java/cn/lunadeer/miniplayertitle/commands/TitleManage.java
@@ -201,7 +201,10 @@ public class TitleManage {
Notification.error(sender, "该命令只能由玩家执行");
return;
}
- if (!sender.hasPermission("mplt.custom")) return;
+ if (!sender.hasPermission("mplt.custom") || !sender.isOp()) {
+ Notification.error(sender, "你没有权限使用该命令");
+ return;
+ }
Player player = (Player) sender;
if (!MiniPlayerTitle.config.isEnableCustom()) {
Notification.error(sender, "自定义称号功能已关闭");