Might be better having something like the following at the top of your script:
echo "This will STOP THE SERVER. Are you sure you want to do this?"
echo "Type 'yes' to continue:"
read response
if [[ $response != "yes" ]]
then
echo "You must type 'yes' to continue. Aborting."
exit 1
fi
echo "Stopping server ..."
It barely takes any time to type 'yes' but it makes you stop and think.