diff --git a/src/main/java/ir/mehradn/rollback/event/RollbackCommand.java b/src/main/java/ir/mehradn/rollback/event/RollbackCommand.java index aed3da2..8de7278 100644 --- a/src/main/java/ir/mehradn/rollback/event/RollbackCommand.java +++ b/src/main/java/ir/mehradn/rollback/event/RollbackCommand.java @@ -83,7 +83,7 @@ public static int deleteBackup(CommandContext context, int int index; switch (position) { case 0 -> index = 0; - case -1 -> index = -1; + case 1 -> index = -1; default -> index = -IntegerArgumentType.getInteger(context, "number"); }