From 410a4d39a660316de8805561946ce903b63591d0 Mon Sep 17 00:00:00 2001 From: XiYang6666 <1782356858@qq.com> Date: Mon, 10 Jun 2024 15:38:11 +0800 Subject: [PATCH] :bug: fix permission --- .../xyz/xasmc/hashbook/command/HashBookCommand.kt | 1 + src/main/resources/plugin.yml | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/xyz/xasmc/hashbook/command/HashBookCommand.kt b/src/main/kotlin/xyz/xasmc/hashbook/command/HashBookCommand.kt index 24e9d9e..8f1748d 100644 --- a/src/main/kotlin/xyz/xasmc/hashbook/command/HashBookCommand.kt +++ b/src/main/kotlin/xyz/xasmc/hashbook/command/HashBookCommand.kt @@ -149,6 +149,7 @@ object HashBookCommand { }) val command = CommandAPICommand("hashbook") + .withPermission("xasmc.hashbook.command") .withSubcommands( reloadCommand, calcHashCommand, diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index ba9628d..d1aeb23 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -9,17 +9,19 @@ softdepend: - NBTAPI permissions: + "xasmc.hashbook.command": + default: true "xasmc.hashbook.command.reload": default: op "xasmc.hashbook.command.calchash": - default: not op + default: true "xasmc.hashbook.command.sethash": default: op "xasmc.hashbook.command.getpage": - default: not op + default: true "xasmc.hashbook.command.searchbook": - default: not op + default: true "xasmc.hashbook.command.storebook": - default: not op + default: true "xasmc.hashbook.command.bookinfo": - default: not op + default: true