Disable dev and player commands for observers

Fixes #6839