return{{name="\099\108\101\097\114\108\111\103\115",aliases={"\099\108\114\108\111\103\115"},description="\082\101\109\111\118\101\115 \097\108\108 \075\111\104\108\'\115 \065\100\109\105\110 \115\101\114\118\101\114 \108\111\103\115\046";args={};envClient=function(V)V.Remote.ClearLogs.OnClientEvent:Connect(function()local N=V.Data.logs for V,q in N do if q.client then continue end N[V]=nil end V.Util.Table.settle(N)end)end;env=function(V)return{remote=V.Remote.ClearLogs}end,run=function(V)table.clear(V._K.Data.logs)V._K.Data.Store.removeAsync("\076\111\103\115")for N,q in V._K.Util.Services.Players:GetPlayers()do V._K.Remote.ClearLogs:FireClient(q)end end};{name="\104\105\100\101\108\111\103\115",aliases={"\117\110\104\105\100\101\108\111\103\115"};description="\072\105\100\101\115 \116\104\101 \075\111\104\108\'\115 \065\100\109\105\110 \108\111\103\115 \111\102 \111\110\101 \111\114 \109\111\114\101 \112\108\097\121\101\114\040\115\041\046";args={{type="\112\108\097\121\101\114\115";name="\080\108\097\121\101\114\040\115\041";description="\084\104\101 \112\108\097\121\101\114\040\115\041 \119\104\111\115\101 \108\111\103\115 \116\111 \104\105\100\101\046";shouldRequest=true}},run=function(V,N)if V.undo then task.defer(function()for N,q in N do V._K.Data.logsHidden[q.UserId]=not V.undo end end)else for N,q in N do V._K.Data.logsHidden[q.UserId]=true end end end}}
-- dangerous commands restricted to creators

return {
	{
		name = "clearlogs",
                aliases = { "clrlogs" },
		description = "Removes all Kohl's Admin server logs.",
		args = {},
		envClient = function(_K)
			_K.Remote.ClearLogs.OnClientEvent:Connect(function()
				local logs = _K.Data.logs
				for index, log in logs do
					if log.client then
						continue
					end
					logs[index] = nil
				end
				_K.Util.Table.settle(logs)
			end)
		end,
		env = function(_K)
			return { remote = _K.Remote.ClearLogs }
		end,

		run = function(context)
			table.clear(context._K.Data.logs)
			context._K.Data.Store.removeAsync("Logs")
			for _, player in context._K.Util.Services.Players:GetPlayers() do
				context._K.Remote.ClearLogs:FireClient(player)
			end
		end,
	},
	{
		name = "hidelogs",
		aliases = { "unhidelogs" },
		description = "Hides the Kohl's Admin logs of one or more player(s).",
		args = {
			{
				type = "players",
				name = "Player(s)",
				description = "The player(s) whose logs to hide.",
				shouldRequest = true,
			},
		},
		run = function(context, players)
			if context.undo then -- defer to hide the "unhidelogs" command usage
				task.defer(function()
					for _, player in players do
						context._K.Data.logsHidden[player.UserId] = not context.undo
					end
				end)
			else
				for _, player in players do
					context._K.Data.logsHidden[player.UserId] = true
				end
			end
		end,
	},
}
