From 349311cb58475d6c860319c41e4fdefe7fb665e0 Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Tue, 21 Jan 2025 11:51:55 -0600 Subject: [PATCH] feat: move default-menu to defaultmenu subcommand --- .../com/hibiscusmc/hmccosmetics/command/CosmeticCommand.java | 2 +- .../hmccosmetics/command/CosmeticCommandTabComplete.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommand.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommand.java index 1ff7346f..70b41d75 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommand.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommand.java @@ -379,7 +379,7 @@ public class CosmeticCommand implements CommandExecutor { if (!silent) MessagesUtil.sendMessage(player, "set-wardrobe-distance"); return true; } - if (args[2].equalsIgnoreCase("default-menu")) { + if (args[2].equalsIgnoreCase("defaultmenu")) { WardrobeSettings.setWardrobeDefaultMenu(wardrobe, args[3]); if (!silent) MessagesUtil.sendMessage(player, "set-wardrobe-menu"); return true; diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommandTabComplete.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommandTabComplete.java index eaea5519..75cb06af 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommandTabComplete.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/command/CosmeticCommandTabComplete.java @@ -123,7 +123,7 @@ public class CosmeticCommandTabComplete implements TabCompleter { completions.add("leavelocation"); completions.add("permission"); completions.add("distance"); - completions.add("default-menu"); + completions.add("defaultmenu"); } } StringUtil.copyPartialMatches(args[2], completions, finalCompletions); @@ -137,7 +137,7 @@ public class CosmeticCommandTabComplete implements TabCompleter { completions.add("#FFFFFF"); } case "setwardrobesetting" -> { - if (args[2].equalsIgnoreCase("default-menu")) { + if (args[2].equalsIgnoreCase("defaultmenu")) { completions.addAll(Menus.getMenuNames()); } }