Skip to content

Commit

Permalink
Register /<extensionid> help (and aliased ?) commands under the "geys…
Browse files Browse the repository at this point in the history
…er.command.exthelp.id" permission
  • Loading branch information
onebeastchris committed Aug 24, 2023
1 parent 9507926 commit d3099b4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ public void register(@NonNull Command command) {

// Register help commands for all extensions with commands
for (Map.Entry<Extension, Map<String, Command>> entry : this.extensionCommands.entrySet()) {
registerExtensionCommand(entry.getKey(), new HelpCommand(this.geyser, "help", "geyser.commands.exthelp.desc", "geyser.command.exthelp", entry.getKey().description().id(), entry.getValue()));
String id = entry.getKey().description().id();
registerExtensionCommand(entry.getKey(), new HelpCommand(this.geyser, "help", "geyser.commands.exthelp.desc", "geyser.command.exthelp." + id, id, entry.getValue()));
}
}

Expand Down

0 comments on commit d3099b4

Please sign in to comment.