Skip to content

Commit

Permalink
minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsinco committed Aug 24, 2024
1 parent d5b5e76 commit 32f5a6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/dre/brewery/storage/DataManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ public static DataManager createDataManager(ConfiguredDataManager record) throws

dataManager.saveAll(false);

plugin.log("&5Finished migrating legacy data! Took&7: &a" + (System.currentTimeMillis() - start) + "ms! &5Join our discord if you need assistance&7: &5https://discord.gg/3FkNaNDnta");
plugin.warningLog("Brewery can only load legacy data from worlds that exist. If you're trying to migrate old cauldrons, barrels, etc. And the worlds they're in don't exist, you'll need to migrate manually.");
plugin.log("&5Finished migrating legacy data! Took&7: &a" + (System.currentTimeMillis() - start) + "ms&5! Join our discord if you need assistance: &ahttps://discord.gg/3FkNaNDnta");
plugin.warningLog("BreweryX can only load legacy data from worlds that exist. If you're trying to migrate old cauldrons, barrels, etc. And the worlds they're in don't exist, you'll need to migrate manually.");
}


plugin.log("DataManager created&7:&6 " + record.type());
plugin.log("DataManager created&7:&a " + record.type());
return dataManager;
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/dre/brewery/storage/impls/MySQLStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ private void saveAllGeneric(List<? extends SerializableThing> serializableThings
connection.commit();
} catch (SQLException e) {
connection.rollback();
plugin.errorLog("Failed to save objects to: " + table + " due to SQL exception!", e);
plugin.errorLog("Failed to save objects to: " + table + " due to MySQL exception!", e);
} finally {
connection.setAutoCommit(true);
}
} catch (SQLException e) {
plugin.errorLog("Failed to manage transaction for saving objects to: " + table + " due to SQL exception!", e);
plugin.errorLog("Failed to manage transaction for saving objects to: " + table + " due to MySQL exception!", e);
}
}

Expand Down

0 comments on commit 32f5a6d

Please sign in to comment.