Fixed migration to database from flat file.

Broke during perf updates.
This commit is contained in:
ryanhamshire committed 2015-01-16 18:16:04 -08:00
1 parent ff491c1443
commit 9e4c1e58ce
1 file changed
+1
@@ -200,6 +200,7 @@ public class GriefPrevention extends JavaPlugin
{
GriefPrevention.AddLogEntry("There appears to be some data on the hard drive. Migrating those data to the database...");
FlatFileDataStore flatFileStore = new FlatFileDataStore();
this.dataStore = flatFileStore;
flatFileStore.migrateData(databaseStore);
GriefPrevention.AddLogEntry("Data migration process complete. Reloading data from the database...");
databaseStore.close();