1
0
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:
502647092 2016-08-15 21:11:39 +08:00
parent b3919d5d00
commit ff2ad4d136

View File

@ -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;
}