diff options
Diffstat (limited to 'MCServer/Plugins/Core/plugins.lua')
-rw-r--r-- | MCServer/Plugins/Core/plugins.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/MCServer/Plugins/Core/plugins.lua b/MCServer/Plugins/Core/plugins.lua new file mode 100644 index 000000000..352c80bb3 --- /dev/null +++ b/MCServer/Plugins/Core/plugins.lua @@ -0,0 +1,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 |