修复op无法自定义称号问题
All checks were successful
Java CI-CD with Maven / build (push) Successful in 35m48s

This commit is contained in:
zhangyuheng 2024-07-14 21:49:07 +08:00
parent d629b1daf7
commit 9de1b5cced
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.lunadeer</groupId>
<artifactId>MiniPlayerTitle</artifactId>
<version>4.3.1</version>
<version>4.3.2</version>
<packaging>jar</packaging>
<name>MiniPlayerTitle</name>

View File

@ -201,7 +201,7 @@ public class TitleManage {
Notification.error(sender, "该命令只能由玩家执行");
return;
}
if (!sender.hasPermission("mplt.custom") || !sender.isOp()) {
if (!sender.hasPermission("mplt.custom") && !sender.hasPermission("mplt.admin")) {
Notification.error(sender, "你没有权限使用该命令");
return;
}