Fix tab complete types for `/as setduration`
This commit is contained in:
parent
2483cf1614
commit
39c8eb5f73
|
@ -90,14 +90,14 @@ public class SetdurationCommand extends CommandAreaShop {
|
||||||
@Override
|
@Override
|
||||||
public List<String> getTabCompleteList(int toComplete, String[] start, CommandSender sender) {
|
public List<String> getTabCompleteList(int toComplete, String[] start, CommandSender sender) {
|
||||||
List<String> result = new ArrayList<>();
|
List<String> result = new ArrayList<>();
|
||||||
if(toComplete == 2) {
|
if(toComplete == 3) {
|
||||||
result = plugin.getFileManager().getRentNames();
|
|
||||||
} else if(toComplete == 4) {
|
|
||||||
result.addAll(plugin.getConfig().getStringList("minutes"));
|
result.addAll(plugin.getConfig().getStringList("minutes"));
|
||||||
result.addAll(plugin.getConfig().getStringList("hours"));
|
result.addAll(plugin.getConfig().getStringList("hours"));
|
||||||
result.addAll(plugin.getConfig().getStringList("days"));
|
result.addAll(plugin.getConfig().getStringList("days"));
|
||||||
result.addAll(plugin.getConfig().getStringList("months"));
|
result.addAll(plugin.getConfig().getStringList("months"));
|
||||||
result.addAll(plugin.getConfig().getStringList("years"));
|
result.addAll(plugin.getConfig().getStringList("years"));
|
||||||
|
} else if(toComplete == 4) {
|
||||||
|
result = plugin.getFileManager().getRentNames();
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue