About to round off the content

This commit is contained in:
Paldiu
2023-01-28 20:54:14 -06:00
parent 7a47aebcf1
commit b82ede0b9e
24 changed files with 448 additions and 60 deletions

View File

@ -72,6 +72,12 @@ public final class DataManager implements Baker, Locker {
user.close();
}
public void saveCacheToDB() {
DBUser user = new DBUser(plugin.getSQLManager().establish());
playerDataCache.forEach(user::insert);
user.close();
}
@SneakyThrows
@Override
public void bake() {