From 99589cd8d701dbee65fb26b33025d393da4b7bf0 Mon Sep 17 00:00:00 2001 From: TehBrian Date: Thu, 23 Jun 2022 20:49:58 -0400 Subject: [PATCH] `/iteminator special suspicious-stew` -> `/iteminator special suspicious-stew effect` --- .../iteminator/command/subs/SpecialCommands.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/java/xyz/tehbrian/iteminator/command/subs/SpecialCommands.java b/src/main/java/xyz/tehbrian/iteminator/command/subs/SpecialCommands.java index 429ab72..a76c092 100755 --- a/src/main/java/xyz/tehbrian/iteminator/command/subs/SpecialCommands.java +++ b/src/main/java/xyz/tehbrian/iteminator/command/subs/SpecialCommands.java @@ -954,7 +954,10 @@ public void registerSpecial( .meta(CommandMeta.DESCRIPTION, "Commands for Suspicious Stews.") .permission(Permissions.SUSPICIOUS_STEW); - final var sSuspiciousStewAdd = sSuspiciousStew.literal("add") + final var sSuspiciousStewEffect = sSuspiciousStew.literal("effect") + .meta(CommandMeta.DESCRIPTION, "Modify the custom effects."); + + final var sSuspiciousStewEffectAdd = sSuspiciousStewEffect.literal("add") .meta(CommandMeta.DESCRIPTION, "Add a custom effect.") .senderType(Player.class) .argument(EnumArgument.of(ModernPotionEffectType.class, "type")) @@ -983,7 +986,7 @@ public void registerSpecial( ); }); - final var sSuspiciousStewRemove = sSuspiciousStew.literal("remove") + final var sSuspiciousStewEffectRemove = sSuspiciousStewEffect.literal("remove") .meta(CommandMeta.DESCRIPTION, "Remove a custom effect.") .senderType(Player.class) .argument(EnumArgument.of(ModernPotionEffectType.class, "type")) @@ -997,7 +1000,7 @@ public void registerSpecial( ); }); - final var sSuspiciousStewClear = sSuspiciousStew.literal("clear") + final var sSuspiciousStewEffectClear = sSuspiciousStewEffect.literal("clear") .meta(CommandMeta.DESCRIPTION, "Clear the custom effects.") .senderType(Player.class) .handler(c -> { @@ -1010,9 +1013,9 @@ public void registerSpecial( ); }); - commandManager.command(sSuspiciousStewAdd) - .command(sSuspiciousStewRemove) - .command(sSuspiciousStewClear); + commandManager.command(sSuspiciousStewEffectAdd) + .command(sSuspiciousStewEffectRemove) + .command(sSuspiciousStewEffectClear); final var sTropicalFishBucket = parent.literal("tropical-fish-bucket") .meta(CommandMeta.DESCRIPTION, "Commands for Tropical Fish Buckets.")