mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2025-09-01 11:26:56 +00:00
@ -201,7 +201,7 @@ public class CommandInfo {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
final String perm = command.permission();
|
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));
|
Log.toSender(sender, String.format(losePerm, perm));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user