Almost £20,000 has been raised by a coastal golf cup event which will go towards building an adaptive sports hub in town.