summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/KBCommandRegister.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2020-04-23 10:45:28 +0800
committerkeuin <[email protected]>2020-04-23 10:45:28 +0800
commitb2d161cee43b9b1af04416486d6df82621b03ae3 (patch)
treee102ea567d7e7f0f7a90acd16b34ac147ed9338e /src/main/java/com/keuin/kbackupfabric/KBCommandRegister.java
parentb582ad31ed8d44aa60b2eab22b2d927519297eeb (diff)
Version 1.0.0-dev1.0.0-dev
TODO: Optimize ZipUtil
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/KBCommandRegister.java')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/KBCommandRegister.java2
1 files changed, 2 insertions, 0 deletions
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 <name> 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<ServerCommandSource> basenode = dispatcher.register(literal("findBiome")
// .then(argument("biome_identifier", identifier()).suggests(BiomeCompletionProvider.BIOMES) // We use Biome suggestions for identifier argument