2012-01-26 17:44:37 -05:00
|
|
|
function HandlePluginListCommand( Split, Player )
|
|
|
|
local PluginManager = cRoot:Get():GetPluginManager()
|
|
|
|
local PluginList = PluginManager:GetAllPlugins()
|
|
|
|
|
|
|
|
local PluginTable = {}
|
|
|
|
for i, Plugin in ipairs( PluginList ) do
|
|
|
|
table.insert(PluginTable, Plugin:GetName() )
|
|
|
|
end
|
|
|
|
|
2012-03-28 14:11:06 -04:00
|
|
|
Player:SendMessage( cChatColor.Green .. "Loaded plugins: (" .. #PluginTable .. ")" )
|
2012-01-26 17:44:37 -05:00
|
|
|
Player:SendMessage( cChatColor.Gold .. table.concat(PluginTable, cChatColor.Gold.." ") )
|
|
|
|
return true
|
|
|
|
end
|