Files
cuberite-2a/MCServer/Plugins/Core/plugins.lua
T

15 lines
528 B
Lua
Raw Normal View History

2013-07-27 16:24:03 +01:00
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
2013-07-31 17:10:59 +01:00
Player:SendMessage(cChatColor.Yellow .. "[INFO] " .. cChatColor.White .. "There are " .. #PluginTable .. " loaded plugins")
Player:SendMessage(cChatColor.Gold .. table.concat(PluginTable, cChatColor.Gold.." ") )
2013-07-27 16:24:03 +01:00
return true
end