Skip to content

Commit b656d3e

Browse files
committed
added short abbreviations for ascend and descend
1 parent e8198b1 commit b656d3e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/redart15/commandly/command/CommandAscend.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public void register(CommandDispatcher<CommandSource> dispatcher) {
2525
.then(ArgumentBuilderRequired.argument("player", ArgumentTypeEntity.username())
2626
.executes(CommandAscend::ascend)));
2727
CommandNode<CommandSource> registeredCommand = dispatcher.register(command);
28-
// dispatcher.register((ArgumentBuilderLiteral)((ArgumentBuilderLiteral)ArgumentBuilderLiteral.literal("asc")
29-
// .requires((t) -> ((CommandSource) t).hasAdmin())
30-
// .redirect((CommandNode<Object>)(CommandNode<?>) registeredCommand)));
28+
dispatcher.register((ArgumentBuilderLiteral)((ArgumentBuilderLiteral)ArgumentBuilderLiteral.literal("up")
29+
.requires((t) -> ((CommandSource) t).hasAdmin())
30+
.redirect((CommandNode<Object>)(CommandNode<?>) registeredCommand)));
3131
}
3232

3333
private static int ascend(CommandContext<Object> context) {

src/main/java/redart15/commandly/command/CommandDescend.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public void register(CommandDispatcher<CommandSource> dispatcher) {
2626
.then(ArgumentBuilderRequired.argument("player", ArgumentTypeEntity.username())
2727
.executes(CommandDescend::descend)));
2828
CommandNode<CommandSource> registeredCommand = dispatcher.register(command);
29-
// dispatcher.register((ArgumentBuilderLiteral)((ArgumentBuilderLiteral)ArgumentBuilderLiteral.literal("desc")
30-
// .requires((t) -> ((CommandSource) t).hasAdmin())
31-
// .redirect((CommandNode<Object>)(CommandNode<?>) registeredCommand)));
29+
dispatcher.register((ArgumentBuilderLiteral)((ArgumentBuilderLiteral)ArgumentBuilderLiteral.literal("down")
30+
.requires((t) -> ((CommandSource) t).hasAdmin())
31+
.redirect((CommandNode<Object>)(CommandNode<?>) registeredCommand)));
3232
}
3333

3434
private static int descend(CommandContext<Object> context) {

0 commit comments

Comments
 (0)