1. I'm trying to grab a list of loaded plugins and their name and version. I know this is exactly what PluginList by Wulf does, but it's in LUA and I absolutely hate LUA, and I can't seem to translate it into working C#. I think my main issue is not knowing what types variables are.

    Here is the pertinent LUA code from PluginList.lua

    Code:
        local pluginList, pluginTable = plugins.GetAll(), {}
        local title, version, description, resourceId    if args.Length ~= 1 then
            for i = 2, pluginList.Length - 1 do
                title = pluginList[i].Title
                version = pluginList[i].Version:ToString()
                description = pluginList[i].Description
                resourceId = pluginList[i].Object.ResourceId
                pluginTable[i - 1] = title
            end        local message = table.concat(pluginTable, ", ")
            SendChatMessage(player, messages.InstalledPlugins .. " " .. message)
        end
    [DOUBLEPOST=1439153793,1439097557][/DOUBLEPOST]Anyone?
     
  2. Wulf

    Wulf Community Admin

  3. Oh, I didn't even know that was a console command. Thank you!