Updated tabcompleter

This commit is contained in:
stijnb1234 2020-02-22 19:00:27 +01:00
parent 6f0aa3c1ff
commit ecd0fdd6f6

View file

@ -25,21 +25,16 @@ public class V10LiftTabCompleter implements TabCompleter {
returns.add("add"); returns.add("add");
returns.add("del"); returns.add("del");
returns.add("rename"); returns.add("rename");
} else if (args[0].equalsIgnoreCase("input")) { } else if (args[0].equalsIgnoreCase("input") || args[0].equalsIgnoreCase("offline") || args[0].equalsIgnoreCase("whitelist") || args[0].equalsIgnoreCase("rope")) {
returns.add("add"); returns.add("add");
returns.add("del"); returns.add("del");
} else if (args[0].equalsIgnoreCase("offline")) { } else if (args[0].equalsIgnoreCase("edit") || args[0].equalsIgnoreCase("start") || args[0].equalsIgnoreCase("stop")) {
returns.add("add");
returns.add("del");
} else if (args[0].equalsIgnoreCase("whitelist")) {
returns.add("add");
returns.add("del");
} else if (args[0].equalsIgnoreCase("rope")) {
returns.add("add");
returns.add("del");
} else if (args[0].equalsIgnoreCase("edit")) {
returns.addAll(DataManager.getLifts().keySet()); returns.addAll(DataManager.getLifts().keySet());
} }
} else if (args.length == 3) {
if (args[0].equalsIgnoreCase("start")) {
returns.addAll(DataManager.getLift(args[1]).getFloors().keySet());
}
} }
Collections.sort(returns); Collections.sort(returns);