Added rename to help

This commit is contained in:
stijnb1234 2020-02-25 10:10:05 +01:00
parent bd3dced9de
commit 6b21dd687d
2 changed files with 2 additions and 1 deletions

View file

@ -1039,6 +1039,7 @@ public class V10LiftCommand implements CommandExecutor {
sender.sendMessage("§6/v10lift create [Name]§f: Create a lift."); sender.sendMessage("§6/v10lift create [Name]§f: Create a lift.");
sender.sendMessage("§6/v10lift delete <Name>§f: Delete a lift."); sender.sendMessage("§6/v10lift delete <Name>§f: Delete a lift.");
sender.sendMessage("§6/v10lift rename <Name> <New name>§f: Rename a lift.");
sender.sendMessage("§6/v10lift abort§f: Abort your action."); sender.sendMessage("§6/v10lift abort§f: Abort your action.");
sender.sendMessage("§6/v10lift whois [Name]§f: See information about a lift."); sender.sendMessage("§6/v10lift whois [Name]§f: See information about a lift.");
sender.sendMessage("§6/v10lift edit <Name>§f: Edit a lift."); sender.sendMessage("§6/v10lift edit <Name>§f: Edit a lift.");

View file

@ -18,7 +18,7 @@ public class V10LiftTabCompleter implements TabCompleter {
if (label.equalsIgnoreCase("v10lift")) { if (label.equalsIgnoreCase("v10lift")) {
ArrayList<String> returns = new ArrayList<>(); ArrayList<String> returns = new ArrayList<>();
if (args.length == 1) { if (args.length == 1) {
String[] strs = { "create", "delete", "abort", "whois", "edit", "floor", "input", "build", "rope", "door", "speed", "realistic", "repair", "whitelist", "reload", "help", "start", "stop", "offline" }; String[] strs = { "create", "delete", "rename", "abort", "whois", "edit", "floor", "input", "build", "rope", "door", "speed", "realistic", "repair", "whitelist", "reload", "help", "start", "stop", "offline" };
returns.addAll(Arrays.asList(strs)); returns.addAll(Arrays.asList(strs));
} else if (args.length == 2) { } else if (args.length == 2) {
if (args[0].equalsIgnoreCase("floor")) { if (args[0].equalsIgnoreCase("floor")) {