Accept DevCommands only from local players

This Pr fixed the Crash when observers are using Developer Commands.
Fixes #6839