Implement setspawn command