Fix plugin commands (#12144)

This commit is contained in:
Jake Potrebic 2025-02-17 15:00:06 -08:00 committed by GitHub
parent 3b9106c7d1
commit d26a9e90c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,6 +117,7 @@ public class PaperCommands implements Commands, PaperRegistrar<LifecycleEventOwn
} }
pluginLiteral.pluginCommandMeta = new PluginCommandMeta(pluginMeta, description, registeredAliases); pluginLiteral.pluginCommandMeta = new PluginCommandMeta(pluginMeta, description, registeredAliases);
node.pluginCommandMeta = pluginLiteral.pluginCommandMeta;
registeredLabels.addAll(registeredAliases); registeredLabels.addAll(registeredAliases);
return registeredLabels.isEmpty() ? Collections.emptySet() : Collections.unmodifiableSet(registeredLabels); return registeredLabels.isEmpty() ? Collections.emptySet() : Collections.unmodifiableSet(registeredLabels);