Fixed migration to database from flat file.
Broke during perf updates.
This commit is contained in:
parent
ff491c1443
commit
9e4c1e58ce
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user