Problem with timer

I have a problem with my timer, it keeps saying: UTIL_GetListenServerHost() called from a dedicated server or single-player game.

Can someone help me with fixing this piece of code?


function PLUGIN.builderTime(player, team)
timer.Create("buildtimer", 5, 0, function()
		if(player:Team() == TEAM_BUILDER) then
			cider.team.make(player, TEAM_CITIZEN);
		end
	end)
end

-- Add the hook
hook.Add("Think", "builderTime", PLUGIN.builderTime)


Thanks

Garry said that “UTIL_GetListenServerHost()” will be fixed in tommorows update. Nothing to do with your code.

But your code will error none the less without a slight modification, try this:

[lua]
function PLUGIN.builderTime(player, team)
timer.Create(“buildtimer”…player:UniqueID(), 5, 0, function()
if(player:Team() == TEAM_BUILDER) then
cider.team.make(player, TEAM_CITIZEN);
end
end)
end
[/lua]