fix: 修复权限为空的检测错误

Signed-off-by: 502647092 <admin@yumc.pw>
merge/1/MERGE
502647092 2016-08-15 21:11:39 +08:00
parent b3919d5d00
commit ff2ad4d136
1 changed files with 1 additions and 1 deletions

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