fix(velocity): section command permission check

This commit is contained in:
HappyAreaBean 2024-03-01 12:52:06 +08:00
parent 61e00ea9f4
commit 7a53047483
No known key found for this signature in database
GPG Key ID: A027DED558B69688

View File

@ -17,7 +17,7 @@ public class SectionCommand extends FallbackCommand {
@Override
public boolean hasPermission(Invocation invocation) {
return invocation.source().hasPermission(permission);
return permission.isEmpty() || invocation.source().hasPermission(permission);
}
@Override