I want to create a simple /help gui or page which lists all available chat/console commands on a server.
I can currently do the following to list all public methods on the plugins when they load, however this requires that the methods are set as public.
private void OnPluginLoaded(Plugin name)
{
Puts("Plugin loaded: " + name);
var methods = name.GetType().GetMethods();
foreach (var method in methods)
{
Puts(method.Name);
}
}
Not sure if this is best practice, so was wondering if there was a way to go about this better?