}
}
@EventHandler
public void onPlayerQuit(PlayerQuitEvent event) {
Database database = plugin.getFeDatabase();
Player player = event.getPlayer();
Account account = database.getCachedAccount(player.getName(), player.getUniqueId().toString());
if (account != null) {
account.save(account.getMoney());
database.removeCachedAccount(account);
}
}