12-29-2013, 11:43 PM
We don't need a separate plugin for that, we can make a source file that will expect this table to be called g_PluginInfo and will export them. Easy.
As for the doubleslash commands, even that is possible, although it looks a bit worse:
I think the categories should be a "member variable" for each command; this way a command doesn't need to be in a category, or could be in multiple categories at once; the exporting code would take care of that. And the categories could get a separate description, too:
As for the doubleslash commands, even that is possible, although it looks a bit worse:
Commands =
{
["/set"] = { ... }
}
I think the categories should be a "member variable" for each command; this way a command doesn't need to be in a category, or could be in multiple categories at once; the exporting code would take care of that. And the categories could get a separate description, too:
g_PluginInfo =
{
...
Commands =
{
descend =
{
Category = "Navigation";
Permission = "..."; ...
},
...
},
CommandCategories =
{
Navigation =
{
Desc = "Commands in this category will teleport a player to various important places";
},
...
},
};

