public void InitMod() { ConfigTool configTool = new ConfigTool(ConfigFilePath); HttpTool httpTool = new HttpTool(configTool.GetApiUrl(), configTool.GetWebToken()); _isSendUpdateEvent = configTool.IsSendUpdateEvent; _eventHooks = new EventHooks(httpTool, configTool); ModEvents.GameAwake.RegisterHandler(GameAwake); ModEvents.GameStartDone.RegisterHandler(GameStartDone); ModEvents.GameUpdate.RegisterHandler(GameUpdate); ModEvents.GameMessage.RegisterHandler(GameMessage); ModEvents.GameShutdown.RegisterHandler(GameShutdown); ModEvents.PlayerLogin.RegisterHandler(PlayerLogin); ModEvents.PlayerSpawnedInWorld.RegisterHandler(PlayerSpawnedInWorld); ModEvents.PlayerDisconnected.RegisterHandler(PlayerDisconnected); ModEvents.ChatMessage.RegisterHandler(ChatMessage); ModEvents.EntityKilled.RegisterHandler(EntityKilled); }