Skip to content

Commit

Permalink
getting greedy out here
Browse files Browse the repository at this point in the history
  • Loading branch information
Inf1nityy committed Aug 1, 2024
1 parent 0f27942 commit 0abdaf7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void register(CommandDispatcher<CommandSourceInfo> dispatcher) {
dispatcher.register(CommandUtils.literal("sudo")
.requires(commandSourceInfo -> CommandUtil.hasPermission(commandSourceInfo, "nexia.staff.sudo"))
.then(CommandUtils.argument("player", EntityArgument.player())
.then(CommandUtils.argument("command", StringArgumentType.string())
.then(CommandUtils.argument("command", StringArgumentType.greedyString())
.executes(context -> SudoCommand.execute(context, context.getArgument("player", EntitySelector.class).findSinglePlayer(CommandUtil.getCommandSourceStack(context.getSource(), false)), StringArgumentType.getString(context, "command")))))
);
}
Expand Down

0 comments on commit 0abdaf7

Please sign in to comment.