Skip to content

Commit cecf9eb

Browse files
committed
Fixed missing updating logic.
1 parent e5c1a97 commit cecf9eb

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/com/github/encryptsl/lite/eco/common/database/models/DatabaseEcoModel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class DatabaseEcoModel : PlayerSQL {
3838
try {
3939
val table = Account(currency)
4040
table.update ({ table.uuid eq uuid }) {
41+
it[table.username] = username
4142
}
4243
} catch (e : ExposedSQLException) {
4344
LiteEco.instance.logger.severe(e.message ?: e.localizedMessage)

src/main/kotlin/com/github/encryptsl/lite/eco/listeners/AccountManageListener.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class AccountManageListener(private val liteEco: LiteEco) : Listener {
2323
for (currency in liteEco.currencyImpl.getCurrenciesKeys()) {
2424
liteEco.databaseEcoModel.getUserByUUID(player.uniqueId, currency).thenApply {
2525
liteEco.databaseEcoModel.updatePlayerName(it.uuid, player.name.toString(), currency)
26-
2726
return@thenApply it
2827
}.thenAccept {
2928
liteEco.api.cacheAccount(player, currency, it.money)

0 commit comments

Comments
 (0)