From 7c84349990f21f783f4b24c113fb372a3c00164b Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 22 Aug 2012 14:22:21 +0000 Subject: WebAdmin should not cause crashes anymore Got rid of cWebPlugin_Lua cPlugin_Lua is also a cWebPlugin now, so plugins don't need a separate cWebPlugin object Changed some stuff to use AString instead of char* git-svn-id: http://mc-server.googlecode.com/svn/trunk@777 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- MCServer/Plugins/Core/main.lua | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'MCServer/Plugins/Core') diff --git a/MCServer/Plugins/Core/main.lua b/MCServer/Plugins/Core/main.lua index 9aed80ab1..c813f19f7 100644 --- a/MCServer/Plugins/Core/main.lua +++ b/MCServer/Plugins/Core/main.lua @@ -135,14 +135,12 @@ function Initialize( Plugin ) end end - local WebPlugin = Plugin:CreateWebPlugin() - WebPlugin:SetName( Plugin:GetName() ) - WebPlugin:AddTab( "Server Settings", HandleRequest_ServerSettings ) - WebPlugin:AddTab( "Chat", HandleRequest_Chat ) - WebPlugin:AddTab( "Playerlist", HandleRequest_PlayerList ) - WebPlugin:AddTab( "Whitelist", HandleRequest_WhiteList ) - WebPlugin:AddTab( "Permissions", HandleRequest_Permissions ) - WebPlugin:AddTab( "Manage Plugins", HandleRequest_ManagePlugins ) + Plugin:AddWebTab( "Server Settings", HandleRequest_ServerSettings ) + Plugin:AddWebTab( "Chat", HandleRequest_Chat ) + Plugin:AddWebTab( "Playerlist", HandleRequest_PlayerList ) + Plugin:AddWebTab( "Whitelist", HandleRequest_WhiteList ) + Plugin:AddWebTab( "Permissions", HandleRequest_Permissions ) + Plugin:AddWebTab( "Manage Plugins", HandleRequest_ManagePlugins ) LOG( "Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion() ) return true -- cgit v1.2.3