TF-EssentialsX/providers
Alexander Söderberg a4f580e319
Make HelpInput use the known command map (#3675)
Co-authored-by: MD <1917406+md678685@users.noreply.github.com>

This PR makes HelpInput use knownCommands in the command map, rather than relying on plugin descriptions. This means that commands that have been registered programmatically (or impromptu) will be recognized and displayed in the help menu.

The ugly reflection is due to Spigot not exposing the command map getter. This has been tested on Spigot 1.8, 1.16.3 and Paper 1.16.3 with plugins that register commands directly to the command map.
2020-10-19 15:27:40 +01:00
..
1_8Provider Reformat and fix Checkstyle violations 2020-10-04 19:59:42 +01:00
BaseProviders Make HelpInput use the known command map (#3675) 2020-10-19 15:27:40 +01:00
NMSReflectionProvider Make HelpInput use the known command map (#3675) 2020-10-19 15:27:40 +01:00
PaperProvider Make HelpInput use the known command map (#3675) 2020-10-19 15:27:40 +01:00