Skip to content

Commit 3d00ee0

Browse files
committed
Fix comments
1 parent 7fe6fac commit 3d00ee0

File tree

1 file changed

+2
-2
lines changed
  • commandapi-platforms/commandapi-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ void updateHelpForCommands(List<RegisteredCommand> commands) {
360360
// Don't override the plugin help topic
361361
String commandPrefix = generateCommandHelpPrefix(command.commandName());
362362

363-
// Namespaced commands shouldn't have a namespace, we should save the namespaced command name
363+
// Namespaced commands shouldn't have a help topic, we should save the namespaced command name
364364
commandPrefix = commandPrefix.substring(1); // Get rid of the '/' for the namespaced command
365365
namespacedCommandNames.add("/" + command.namespace() + ":" + commandPrefix); // Bukkit it stupid, it registers commands with a '/' in the help map
366366

@@ -425,7 +425,7 @@ void updateHelpForCommands(List<RegisteredCommand> commands) {
425425
commandPrefix = generateCommandHelpPrefix(alias);
426426
helpTopic = generateHelpTopic(commandPrefix, shortDescription, currentAliasSb.toString().trim(), permission);
427427

428-
// Namespaced commands shouldn't have a namespace, we should save the namespaced command name
428+
// Namespaced commands shouldn't have a help topic, we should save the namespaced alias name
429429
commandPrefix = commandPrefix.substring(1); // Get rid of the '/' for the namespaced command
430430
namespacedCommandNames.add("/" + command.namespace() + ":" + commandPrefix); // Bukkit it stupid, it registers commands with a '/' in the help map
431431
}

0 commit comments

Comments
 (0)