Update the events system, handle plugins