Fixed sendEvent() call from Plugin->sendToServer()