From 39c8eb5f73be3f4d082b78f1b723765add1b9f72 Mon Sep 17 00:00:00 2001 From: Thijs Wiefferink Date: Mon, 22 Oct 2018 23:44:31 +0200 Subject: [PATCH] Fix tab complete types for `/as setduration` --- .../me/wiefferink/areashop/commands/SetdurationCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AreaShop/src/main/java/me/wiefferink/areashop/commands/SetdurationCommand.java b/AreaShop/src/main/java/me/wiefferink/areashop/commands/SetdurationCommand.java index 7246e7c..9598b1c 100644 --- a/AreaShop/src/main/java/me/wiefferink/areashop/commands/SetdurationCommand.java +++ b/AreaShop/src/main/java/me/wiefferink/areashop/commands/SetdurationCommand.java @@ -90,14 +90,14 @@ public class SetdurationCommand extends CommandAreaShop { @Override public List getTabCompleteList(int toComplete, String[] start, CommandSender sender) { List result = new ArrayList<>(); - if(toComplete == 2) { - result = plugin.getFileManager().getRentNames(); - } else if(toComplete == 4) { + if(toComplete == 3) { result.addAll(plugin.getConfig().getStringList("minutes")); result.addAll(plugin.getConfig().getStringList("hours")); result.addAll(plugin.getConfig().getStringList("days")); result.addAll(plugin.getConfig().getStringList("months")); result.addAll(plugin.getConfig().getStringList("years")); + } else if(toComplete == 4) { + result = plugin.getFileManager().getRentNames(); } return result; }