Skip to content

Commit

Permalink
fix: only set command executors when they aren't set
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed May 4, 2023
1 parent afcb58f commit cc13066
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -151,8 +151,11 @@ private static void register(
}
}

command.setExecutor(atCommand);
command.setTabCompleter(atCommand);
if (command.getExecutor() != atCommand) {
command.setExecutor(atCommand);
command.setTabCompleter(atCommand);
}

registeredCommands.put(name, command);
}

Expand Down

0 comments on commit cc13066

Please sign in to comment.