9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2025-12-31 21:06:40 +00:00

Got MySQL working

This commit is contained in:
Auxilor
2021-09-21 13:34:59 +01:00
parent a4f731a6c8
commit 75d125cd59

View File

@@ -59,8 +59,10 @@ class MySQLDataHandler(
it[this.uuid] = uuid
}
}
val player = Players.select { Players.uuid eq uuid }.first()
player[Players.columns.stream().filter { it.name == key }.findFirst().get()] = value
val column: Column<T> = Players.columns.stream().filter { it.name == key }.findFirst().get() as Column<T>
Players.update ({ Players.uuid eq uuid }) {
it[column] = value
}
}
}