battleConnectionLost event and changes to plugin load commands