From 77dffe720d8f81687a70a9696678bd7a0ecb4f8d Mon Sep 17 00:00:00 2001 From: MATRIX-feather Date: Sat, 7 Dec 2024 19:26:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=81=E7=A7=BB=E5=90=8E=E7=9A=84look?= =?UTF-8?q?up=E5=92=8Cskin=5Fcache=E5=AD=90=E6=8C=87=E4=BB=A4=E4=B8=8D?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E6=9D=83=E9=99=90=E5=B0=B1=E8=83=BD=E8=BF=90?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../morph/commands/subcommands/plugin/LookupSubCommand.java | 1 + .../morph/commands/subcommands/plugin/SkinCacheSubCommand.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/xyz/nifeather/morph/commands/subcommands/plugin/LookupSubCommand.java b/src/main/java/xyz/nifeather/morph/commands/subcommands/plugin/LookupSubCommand.java index 27aa77dd..d66ae156 100644 --- a/src/main/java/xyz/nifeather/morph/commands/subcommands/plugin/LookupSubCommand.java +++ b/src/main/java/xyz/nifeather/morph/commands/subcommands/plugin/LookupSubCommand.java @@ -52,6 +52,7 @@ public void registerAsChild(ArgumentBuilder parentBuilder { parentBuilder.then( Commands.literal("lookup") + .requires(this::checkPermission) .then( Commands.argument("who", StringArgumentType.string()) .executes(this::execWithName) diff --git a/src/main/java/xyz/nifeather/morph/commands/subcommands/plugin/SkinCacheSubCommand.java b/src/main/java/xyz/nifeather/morph/commands/subcommands/plugin/SkinCacheSubCommand.java index 2bc62bf5..aeefc792 100644 --- a/src/main/java/xyz/nifeather/morph/commands/subcommands/plugin/SkinCacheSubCommand.java +++ b/src/main/java/xyz/nifeather/morph/commands/subcommands/plugin/SkinCacheSubCommand.java @@ -64,6 +64,7 @@ public void registerAsChild(ArgumentBuilder parentBuilder { parentBuilder.then( Commands.literal(name()) + .requires(this::checkPermission) .then( Commands.literal("list") .executes(ctx -> this.executeList(ctx, null))