Skip to content

Commit

Permalink
/iteminator special suspicious-stew -> `/iteminator special suspici…
Browse files Browse the repository at this point in the history
…ous-stew effect`
  • Loading branch information
TehBrian committed Jun 24, 2022
1 parent cba3576 commit 99589cd
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -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"))
Expand All @@ -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 -> {
Expand All @@ -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.")
Expand Down

0 comments on commit 99589cd

Please sign in to comment.