Skip to content

Commit

Permalink
0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
hostadam committed Oct 9, 2023
1 parent 3f4ec02 commit 34dbafa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public CommandImpl(CommandHandler handler, CommandData data) {
public boolean execute(CommandSender sender, String label, String[] args) {
CommandData subcommand;
if(args.length > 0 && (subcommand = this.getSubCommand(args[0])) != null) {
subcommand.execute(this.commandHandler, sender, Arrays.copyOfRange(args, 1, args.length));
subcommand.execute(this.commandHandler, sender, Arrays.copyOfRange(args, 0, args.length));
} else {
this.data.execute(this.commandHandler, sender, args);
}
Expand Down

0 comments on commit 34dbafa

Please sign in to comment.