Codelanx / CodelanxLib

Library for Codelanx plugins. Public use is allowed, but must be credited
Other
14 stars 4 forks source link

Allowing the ability to remove the HelpCommand #16

Closed hfreeb closed 9 years ago

hfreeb commented 9 years ago

Added an extra two constructors to allow the ability to not have the HelpCommand automatically attaching to the command.

1Rogue commented 9 years ago

There should already be a way to do this, when I finish making breakfast I can post how.

hfreeb commented 9 years ago

I don't see a way when looking in the source.

1Rogue commented 9 years ago

Yup, looks like the way was refactored out.

I'll be adding it, but not as a constructor parameter (Look out for CommandNode#removeChild and CommandNode#removeHelpCommand)

1Rogue commented 9 years ago

Out of curiousity, what purpose do you want to remove the HelpCommand for?

hfreeb commented 9 years ago

For my server we're having a custom help command and the help subcommand isn't needed. Even if I just don't use it would appear in tab completes.

1Rogue commented 9 years ago

Okay, I'll add that functionality in a little bit (working out a diff bug atm)

1Rogue commented 9 years ago

https://github.com/CodeLanx/CodelanxLib/commit/47732e194f51bbc08c5a0329354196a7e27b9981