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