How do you register a command with addon? #1074
Labels
Status: Done
This issue has been completed or answered. This pull request has been merged.
Type: API
relating to the BentoBox API
Type: Documentation
Type: Question
Question or issue related to configuration, API or features.
Hello, I'm making an addon that will work with BSkyBlock and I'm having trouble registering the command. I've followed everything on the Wiki but it seems that it's unfinished and I've looked through the source of other addons such as Level and the way that it's done there is not working for me, the command doesn't exist when I try using /is (command).
Is there a different way to do it other than something similar to:
getPlugin().getAddonsManager().getGameModeAddons().forEach(gm -> {
I've also tried doing it exactly how it's done in Level with marking the specific gamemodes, but it's not working. The features in my addon won't be gamemode specific so it doesn't matter to me that it's registered for all gamemode addons.
I appreciate any help. Sorry if this isn't the place to ask for help, not sure where else I could ask.
The text was updated successfully, but these errors were encountered: