return{Options=Options,PerformAction=function(D,V,...)local x=Actions[V]if not x then return end if ToolMode=="\084\111\111\108"then assert(Player and D==Player,"\080\101\114\109\105\115\115\105\111\110 \100\101\110\105\101\100 \102\111\114 \099\108\105\101\110\116")end return x(...)end}

return {

	-- Provide access to internal options
	Options = Options;

	-- Provide client actions API
	PerformAction = function (Client, ActionName, ...)

		-- Make sure the action exists
		local Action = Actions[ActionName];
		if not Action then
			return;
		end;

		-- Ensure client is current player in tool mode
		if ToolMode == 'Tool' then
			assert(Player and (Client == Player), 'Permission denied for client');
		end;

		-- Execute valid actions
		return Action(...);

	end;

};
