File tree Expand file tree Collapse file tree
src/main/java/redart15/commandly/command Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments