A Central Texas man got a 30-day jail sentence for contempt of court after criticizing a judge in a Caldwell County Courthouse men's room.