Skip to content

Commit

Permalink
🐛 fix permission
Browse files Browse the repository at this point in the history
  • Loading branch information
XiYang6666 committed Jun 10, 2024
1 parent 625f530 commit 410a4d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ object HashBookCommand {
})

val command = CommandAPICommand("hashbook")
.withPermission("xasmc.hashbook.command")
.withSubcommands(
reloadCommand,
calcHashCommand,
Expand Down
12 changes: 7 additions & 5 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 410a4d3

Please sign in to comment.