Hello,
I would like to know how I can get all Minecraft commands.
I try with Sponge.getCommandManager().getAliases() but it returns only mods commands, and Sponge.getCommandManager().getOwnedBy(Sponge.getPlatform().getContainer(Component.GAME)) return an empty set.
The method CommandManager#getOwnedBy(Object instance) accepts an instance of the main class of a plugin, and not its wrapper in the form of a PluginContainer.
It also accepts a PluginContainer which will just return that PluginContainer, so what he originally used was correct:
I’d need to have a proper look at what is going on. It is attempting to use the minecraft container to register, so I’d imagine there is just something funky going on…