diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-08-11 17:00:53 +0200 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-08-11 17:00:53 +0200 |
commit | cc708f757c19a2e0c66f138897f41d86d46dd0fb (patch) | |
tree | 768cee0a544f131cf6964c058ec2881346880804 /MCServer/Plugins/Core/plugins.lua | |
parent | Added the OnHopperPullingItem and OnHopperPushingItem hooks. (diff) | |
download | cuberite-cc708f757c19a2e0c66f138897f41d86d46dd0fb.tar cuberite-cc708f757c19a2e0c66f138897f41d86d46dd0fb.tar.gz cuberite-cc708f757c19a2e0c66f138897f41d86d46dd0fb.tar.bz2 cuberite-cc708f757c19a2e0c66f138897f41d86d46dd0fb.tar.lz cuberite-cc708f757c19a2e0c66f138897f41d86d46dd0fb.tar.xz cuberite-cc708f757c19a2e0c66f138897f41d86d46dd0fb.tar.zst cuberite-cc708f757c19a2e0c66f138897f41d86d46dd0fb.zip |
Diffstat (limited to 'MCServer/Plugins/Core/plugins.lua')
-rw-r--r-- | MCServer/Plugins/Core/plugins.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/MCServer/Plugins/Core/plugins.lua b/MCServer/Plugins/Core/plugins.lua index 66b6b4d90..352c80bb3 100644 --- a/MCServer/Plugins/Core/plugins.lua +++ b/MCServer/Plugins/Core/plugins.lua @@ -1,15 +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() ) + if Plugin then + table.insert( PluginTable, Plugin:GetName() ) end end - Player:SendMessage(cChatColor.Yellow .. "[INFO] " .. cChatColor.White .. "There are " .. #PluginTable .. " loaded plugins") - Player:SendMessage(cChatColor.Gold .. table.concat(PluginTable, cChatColor.Gold.." ") ) + SendMessage( Player, "There are " .. #PluginTable .. " loaded plugins" ) + SendMessage( Player, table.concat( PluginTable , " " ) ) return true -end
\ No newline at end of file + +end |