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