Add support for enabling spectating and checking for it in JS and WZ Script.