summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/plugins.lua
blob: 352c80bb379429eed7e9e935ae4c256686cef1ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function HandlePluginsCommand( Split, Player )

	local PluginManager = cRoot:Get():GetPluginManager()
	local PluginList = PluginManager:GetAllPlugins()

	local PluginTable = {}
	for k, Plugin in pairs( PluginList ) do
		if Plugin then
			table.insert( PluginTable, Plugin:GetName() )
		end
	end

	SendMessage( Player, "There are " .. #PluginTable .. " loaded plugins" )
	SendMessage( Player, table.concat( PluginTable , " " ) )
	return true

end