Made ping also use sendToServer and added #!/usr/bin/env bash so text editors will highlight code