Tool panel not rebuilding itself in multiplayer, but it works in singleplayer

ClearControls isn’t working, so it doesn’t remove the panel. I’ve tried adding debug messages in and it tells me that it runs TOOL.BuildCPanel from start to finish. But it doesn’t remove itself. Nor does it add another set of buttons and a tree. ANd the weird part is that it works in singleplayer but not in multiplayer.

[lua]
function TOOL:RefreshList()
local cPanel = GetControlPanel( “PAC” )
cPanel:ClearControls()
TOOL.BuildCPanel( cPanel )
end
[/lua]

[lua]
function TOOL.BuildCPanel( cPanel )
local tree = vgui.Create( “PAC_Tree”, cPanel )
cPanel:AddPanel( tree )
tree:SetTall( 500 )
local client = tree:AddNode( “Client” )
local server = tree:AddNode( “Server” )

local noTable = {"Refresh me", "outfits"}

local clientfiles = TOOL:GetFiles()

TOOL:AddParts( client, clientfiles or noTable, "client" )
TOOL:AddParts( server, serverfiles or noTable, "server" )
cPanel:AddControl( "Button", 
{
	Label = "Open Editor",
	Command = "pac_requestserverparts"
})

cPanel:AddControl( "Button", 
{
	Label = "Remove everything you are wearing",
	Command = "pac_removeparts;pac_removepartsclient"
}) 

cPanel:AddControl( "Button", 
{
	Label = "Refresh",
	Command = "pac_refresh"
})

end
[/lua]

Here’s a link to the whole stool:

http://errur.com/f/Download.php?id=560

What if you first of all delete the tree before you refresh… I’m pretty sure it has something with server priveleges and stuff to do but if you do that it might work i hope