Warwick man gets 30 years for shooting