From c5b3b1dbb5e766051f0921c75e116ff17f57141c Mon Sep 17 00:00:00 2001 From: William278 Date: Thu, 27 Feb 2025 00:10:31 +0000 Subject: [PATCH] fix: wrong arg used in `/huskhomes dump confirm` --- .../java/net/william278/huskhomes/command/HuskHomesCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java b/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java index b0cad6e0..2f2d9322 100644 --- a/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java +++ b/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java @@ -127,7 +127,7 @@ public class HuskHomesCommand extends Command implements UserListTabCompletable )); } case "dump" -> { - if (!parseStringArg(args, 0).map(s -> s.equals("confirm")).orElse(false)) { + if (!parseStringArg(args, 1).map(s -> s.equals("confirm")).orElse(false)) { getPlugin().getLocales().getLocale("system_dump_confirm").ifPresent(executor::sendMessage); return; }