adjust /backup command's permission level
This commit is contained in:
1 file changed
+1
-1
@@ -58,7 +58,7 @@ public class BackupCommands {
|
|||||||
CommandDispatcher<CommandSourceStack> dispatcher,
|
CommandDispatcher<CommandSourceStack> dispatcher,
|
||||||
CommandBuildContext registry, Commands.CommandSelection env) {
|
CommandBuildContext registry, Commands.CommandSelection env) {
|
||||||
dispatcher.register(literal("backup")
|
dispatcher.register(literal("backup")
|
||||||
.requires(it -> it.hasPermission(3))
|
.requires(it -> it.hasPermission(4))
|
||||||
.then(literal("help").executes(this::cmdHelp))
|
.then(literal("help").executes(this::cmdHelp))
|
||||||
.then(literal("list").executes(this::cmdList))
|
.then(literal("list").executes(this::cmdList))
|
||||||
.then(literal("cancelrestore").executes(this::cmdCancelRestore))
|
.then(literal("cancelrestore").executes(this::cmdCancelRestore))
|
||||||
|
|||||||
Reference in new issue
Block a user