Combined some of the shared code in enable/disable_events(). Also disables events on a joining standalone server.