Skip to content

Commit

Permalink
/iteminator special banner -> /iteminator special banner pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
TehBrian committed Jun 24, 2022
1 parent 98a7892 commit cba3576
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ public void registerSpecial(
.meta(CommandMeta.DESCRIPTION, "Commands for Banners.")
.permission(Permissions.BANNER);

final var sBannerAdd = sBanner.literal("add")
final var sBannerPattern = sBanner.literal("pattern")
.meta(CommandMeta.DESCRIPTION, "Modify the patterns.");

final var sBannerPatternAdd = sBannerPattern.literal("add")
.meta(CommandMeta.DESCRIPTION, "Add a pattern.")
.senderType(Player.class)
.argument(EnumArgument.of(DyeColor.class, "color"))
Expand All @@ -221,7 +224,7 @@ public void registerSpecial(
);
});

final var sBannerSet = sBanner.literal("set")
final var sBannerPatternSet = sBannerPattern.literal("set")
.meta(CommandMeta.DESCRIPTION, "Set a pattern.")
.senderType(Player.class)
.argument(IntegerArgument.<CommandSender>newBuilder("index").withMin(0))
Expand All @@ -245,7 +248,7 @@ public void registerSpecial(
);
});

final var sBannerRemove = sBanner.literal("remove")
final var sBannerPatternRemove = sBannerPattern.literal("remove")
.meta(CommandMeta.DESCRIPTION, "Remove a pattern.")
.senderType(Player.class)
.argument(IntegerArgument.<CommandSender>newBuilder("index").withMin(0))
Expand All @@ -267,7 +270,7 @@ public void registerSpecial(
);
});

final var sBannerClear = sBanner.literal("clear")
final var sBannerPatternClear = sBannerPattern.literal("clear")
.meta(CommandMeta.DESCRIPTION, "Clear the patterns.")
.senderType(Player.class)
.handler(c -> {
Expand All @@ -280,10 +283,10 @@ public void registerSpecial(
);
});

commandManager.command(sBannerAdd)
.command(sBannerSet)
.command(sBannerRemove)
.command(sBannerClear);
commandManager.command(sBannerPatternAdd)
.command(sBannerPatternSet)
.command(sBannerPatternRemove)
.command(sBannerPatternClear);

final var sBook = parent.literal("book")
.meta(CommandMeta.DESCRIPTION, "Commands for Books.")
Expand Down

0 comments on commit cba3576

Please sign in to comment.