local CATEGORY_NAME = "Advanced Cmds"

function ulx.jban( calling_ply, target )
	ULib.Kick( target, "Jail Banned from server. Connect and be jailed." ) -- Not a ban, this way we eliminate the process of reading banned_user.cfg and unbanning, etc.
	ulx.fancyLogAdmin( calling_ply, "#A has Jail Banned #T.", target ) -- Annouces the ban
	if target:IsConnected() then -- If they join, well do the below
		target:ChatPrint( "Jailed." ) -- Tell them the kick warning was true.
		ULib.Gag( target )
		ULib.Jail( target )
		ULib.Mute( target )
	end
end
local jban = ulx.command( CATEGORY_NAME, "ulx jban", ulx.jban, "!jban" )
jban:defaultAccess( ULib.ACCESS_ADMIN )
jban:help( "Easier way to ban, but able to humilify if they rejoin." )