Skip to content

Commit d494b7a

Browse files
committed
Expand CommandHelpTests
Add tests for CommandAPI#454, CommandAPI#537, and CommandAPI@f9c5fce. Just generally ensure code coverage for help generation. Pulled repetitive logic into `CommandHelpTests#assertHelpTopicCreated` and `TestBase#enableServer` Also, small change: The alias list in an alias help topic had a redundant `ChatColor.WHITE` character
1 parent 07242d7 commit d494b7a

File tree

5 files changed

+361
-119
lines changed

5 files changed

+361
-119
lines changed

commandapi-platforms/commandapi-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/CommandAPIBukkit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ void updateHelpForCommands(List<RegisteredCommand> commands) {
422422
aliases.add(command.commandName());
423423
aliases.remove(alias);
424424

425-
currentAliasSb.append(ChatColor.WHITE).append(String.join(", ", aliases));
425+
currentAliasSb.append(String.join(", ", aliases));
426426

427427
// Don't override the plugin help topic
428428
commandPrefix = generateCommandHelpPrefix(alias);

0 commit comments

Comments
 (0)