diff --git a/Implementation/PluginCooperationHandler.cs b/Implementation/PluginCooperationHandler.cs index b9ce6e7..929a1dc 100644 --- a/Implementation/PluginCooperationHandler.cs +++ b/Implementation/PluginCooperationHandler.cs @@ -57,16 +57,16 @@ public void InfiniteChests_ChestDataImport( IDbConnection dbConnection = null; try { - switch (TShock.Config.StorageType.ToLower()) { + switch (TShock.Config.Settings.StorageType.ToLower()) { case "mysql": - string[] host = TShock.Config.MySqlHost.Split(':'); + string[] host = TShock.Config.Settings.MySqlHost.Split(':'); dbConnection = new MySqlConnection(string.Format( "Server={0}; Port={1}; Database={2}; Uid={3}; Pwd={4};", host[0], host.Length == 1 ? "3306" : host[1], - TShock.Config.MySqlDbName, - TShock.Config.MySqlUsername, - TShock.Config.MySqlPassword + TShock.Config.Settings.MySqlDbName, + TShock.Config.Settings.MySqlUsername, + TShock.Config.Settings.MySqlPassword )); break; @@ -171,16 +171,16 @@ public void InfiniteSigns_SignDataImport( IDbConnection dbConnection = null; try { - switch (TShock.Config.StorageType.ToLower()) { + switch (TShock.Config.Settings.StorageType.ToLower()) { case "mysql": - string[] host = TShock.Config.MySqlHost.Split(':'); + string[] host = TShock.Config.Settings.MySqlHost.Split(':'); dbConnection = new MySqlConnection(string.Format( "Server={0}; Port={1}; Database={2}; Uid={3}; Pwd={4};", host[0], host.Length == 1 ? "3306" : host[1], - TShock.Config.MySqlDbName, - TShock.Config.MySqlUsername, - TShock.Config.MySqlPassword + TShock.Config.Settings.MySqlDbName, + TShock.Config.Settings.MySqlUsername, + TShock.Config.Settings.MySqlPassword )); break;