diff --git a/MCServer/Plugins/Core/web_manageplugins.lua b/MCServer/Plugins/Core/web_manageplugins.lua index cd785ec53..bf1f04ff5 100644 --- a/MCServer/Plugins/Core/web_manageplugins.lua +++ b/MCServer/Plugins/Core/web_manageplugins.lua @@ -122,13 +122,27 @@ function HandleRequest_ManagePlugins( Request ) Content = Content .. "
".. k .." | " - if( Plugin ) then - Content = Content .. "" .. Plugin:GetName() .. " V. " .. Plugin:GetVersion() .. " | " .. Button_DisablePlugin(k) .. " | " + if( Plugin ) then + table.insert( ActivePluginsName, k ) + table.insert( ActivePluginVersion, Plugin:GetVersion() ) else - Content = Content .. "" .. Button_EnablePlugin(k) .. " | " + table.insert( InactivePlugins, k ) end + end + table.sort( ActivePluginsName ) + table.sort( InactivePlugins ) + for i = 1, #ActivePluginsName do + Content = Content .. "|
".. ActivePluginsName[i] .." | " + Content = Content .. "" .. ActivePluginsName[i] .. " V. " .. ActivePluginVersion[i] .. " | " .. Button_DisablePlugin(ActivePluginsName[i]) .. " | " + Content = Content .. "||
".. InactivePlugins[i] .." | " + Content = Content .. "" .. Button_EnablePlugin(InactivePlugins[i]) .. " | " Content = Content .. "