execute chat commands only locally

fixes #5755
Merge pull request #5817 from Mailaender/chat-command-nre

Fixed chat commands crashing replays