From b2d161cee43b9b1af04416486d6df82621b03ae3 Mon Sep 17 00:00:00 2001 From: Keuin Date: Thu, 23 Apr 2020 10:45:28 +0800 Subject: Version 1.0.0-dev TODO: Optimize ZipUtil --- src/main/java/com/keuin/kbackupfabric/KBCommandRegister.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/com/keuin/kbackupfabric/KBCommandRegister.java') diff --git a/src/main/java/com/keuin/kbackupfabric/KBCommandRegister.java b/src/main/java/com/keuin/kbackupfabric/KBCommandRegister.java index 96f05e8..d4823c4 100644 --- a/src/main/java/com/keuin/kbackupfabric/KBCommandRegister.java +++ b/src/main/java/com/keuin/kbackupfabric/KBCommandRegister.java @@ -22,6 +22,8 @@ public class KBCommandRegister { // register /kb restore for performing restore. OP is required. dispatcher.register(CommandManager.literal("kb").then(CommandManager.literal("restore").then(CommandManager.argument("backupName", StringArgumentType.string()).requires(KBCommandHandler::opPermissionValidator).executes(KBCommandHandler::restore)).executes(KBCommandHandler::list))); + // register /kb confirm for confirming the execution + dispatcher.register(CommandManager.literal("kb").then(CommandManager.literal("confirm").executes(KBCommandHandler::confirm))); // LiteralCommandNode basenode = dispatcher.register(literal("findBiome") // .then(argument("biome_identifier", identifier()).suggests(BiomeCompletionProvider.BIOMES) // We use Biome suggestions for identifier argument -- cgit v1.2.3