mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-21 01:38:51 +00:00
fix: 修复权限为空的检测错误
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
b3919d5d00
commit
ff2ad4d136
@ -201,7 +201,7 @@ public class CommandInfo {
|
||||
}
|
||||
}
|
||||
final String perm = command.permission();
|
||||
if (perm != null && !sender.hasPermission(perm)) {
|
||||
if (perm != null && !"".equals(perm) && !sender.hasPermission(perm)) {
|
||||
Log.toSender(sender, String.format(losePerm, perm));
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user