2012-01-26 17:44:37 -05:00
|
|
|
function HandlePluginListCommand( Split, Player )
|
|
|
|
local PluginManager = cRoot:Get():GetPluginManager()
|
|
|
|
local PluginList = PluginManager:GetAllPlugins()
|
|
|
|
|
|
|
|
local PluginTable = {}
|
2012-10-15 18:55:45 -04:00
|
|
|
for k, Plugin in pairs( PluginList ) do
|
|
|
|
if ( Plugin ) then
|
|
|
|
table.insert(PluginTable, Plugin:GetName() )
|
|
|
|
end
|
2012-01-26 17:44:37 -05:00
|
|
|
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
|