['bannedgear'] = {}
return function(set) if(not set['BannedGear']) then set['BannedGear'] = {} -- later end for _,comm in ipairs(set.Commands) do if(comm.Cmds[1] == "gear") then local oldFunction = comm.Function comm.Function = function(plr, args) local ok = true; for _,bg in ipairs(set['BannedGear']) do if(bg == args[1] or string(bg) == args[1]) then set.Message("Banned Gear", "We apologize, but this gear has been banned.", false, {plr}) ok = false; end end if(ok) then oldFunction(plr, args) end end break end end end