mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-11-29 12:45:18 +01:00
Fix
This commit is contained in:
parent
d04eae11ac
commit
416db6867f
@ -428,13 +428,17 @@ class H2DataHandler : DataHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun addUser(uuid: UUID, name: String) {
|
override fun addUser(uuid: UUID, name: String) {
|
||||||
dataSource.connection.use { connection ->
|
try {
|
||||||
connection.prepareStatement("INSERT IGNORE INTO `axminions_users`(`uuid`, `name`, `island_slots`) VALUES (?,?,?);").use { statement ->
|
dataSource.connection.use { connection ->
|
||||||
statement.setObject(1, uuid)
|
connection.prepareStatement("INSERT INTO `axminions_users`(`uuid`, `name`, `island_slots`) VALUES (?,?,?);").use { statement ->
|
||||||
statement.setString(2, name)
|
statement.setObject(1, uuid)
|
||||||
statement.setInt(3, 0)
|
statement.setString(2, name)
|
||||||
statement.executeUpdate()
|
statement.setInt(3, 0)
|
||||||
|
statement.executeUpdate()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} catch (exception: Exception) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user