creating a command on the server side

Hello!
I need to create a command on the server side. If I create it on the client side it is handled normally. If I create it on the server side, it does not get executed at all.
any ideas?
</del>void CreateEndActionEvent()
    {
        if (_target != null)
        {
            IEndActionCommandInput act = EndActionCommand.Create();
            act.Action = (int) EActionType.Heal;
            entity.QueueInput(act);//<= this command does not fall into ExecuteCommand()
        }
        _target = null;
    }

Comments