Skip to content

Commit

Permalink
fix: 迁移后的lookup和skin_cache子指令不需要权限就能运行
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Dec 7, 2024
1 parent ed27474 commit 77dffe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public void registerAsChild(ArgumentBuilder<CommandSourceStack, ?> parentBuilder
{
parentBuilder.then(
Commands.literal("lookup")
.requires(this::checkPermission)
.then(
Commands.argument("who", StringArgumentType.string())
.executes(this::execWithName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public void registerAsChild(ArgumentBuilder<CommandSourceStack, ?> parentBuilder
{
parentBuilder.then(
Commands.literal(name())
.requires(this::checkPermission)
.then(
Commands.literal("list")
.executes(ctx -> this.executeList(ctx, null))
Expand Down

0 comments on commit 77dffe7

Please sign in to comment.