Added safety precautions for direct server hooks

Signed-off-by: bergerkiller <bergerkiller@gmail.com>