This commit is contained in:
parent
b52fce2479
commit
d629b1daf7
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>cn.lunadeer</groupId>
|
<groupId>cn.lunadeer</groupId>
|
||||||
<artifactId>MiniPlayerTitle</artifactId>
|
<artifactId>MiniPlayerTitle</artifactId>
|
||||||
<version>4.3.0</version>
|
<version>4.3.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>MiniPlayerTitle</name>
|
<name>MiniPlayerTitle</name>
|
||||||
|
@ -201,7 +201,10 @@ public class TitleManage {
|
|||||||
Notification.error(sender, "该命令只能由玩家执行");
|
Notification.error(sender, "该命令只能由玩家执行");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!sender.hasPermission("mplt.custom")) return;
|
if (!sender.hasPermission("mplt.custom") || !sender.isOp()) {
|
||||||
|
Notification.error(sender, "你没有权限使用该命令");
|
||||||
|
return;
|
||||||
|
}
|
||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
if (!MiniPlayerTitle.config.isEnableCustom()) {
|
if (!MiniPlayerTitle.config.isEnableCustom()) {
|
||||||
Notification.error(sender, "自定义称号功能已关闭");
|
Notification.error(sender, "自定义称号功能已关闭");
|
||||||
|
Loading…
Reference in New Issue
Block a user