Skip to content

Commit

Permalink
Fixed SQL.kt connect / disconnect spam
Browse files Browse the repository at this point in the history
  • Loading branch information
LartyHD authored and LartyHD committed Feb 28, 2020
1 parent c9e857f commit 163de23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import kotlin.coroutines.suspendCoroutine
class SQL(private val sqlData: SQLData, private val logger: Logger = Logger.getGlobal()) {
private var connection: Connection? = null
get() {
if (field?.isValid(2)!!) {
if (field?.isValid(2) != true) {
disconnect(field)
connect()
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* © Copyright by Astride UG (haftungsbeschränkt) 2018 - 2019.
* © Copyright by Astride UG (haftungsbeschränkt) 2018 - 2020.
*/
package net.darkdevelopers.darkbedrock.darkness.spigot.events.listener

Expand Down Expand Up @@ -38,7 +38,7 @@ object EventsListener : EventsTemplate() {
}

private fun changeGameProfile(plugin: Plugin) {
val baseURL = ".change.gameprofile.darkdevelopers.net"
val baseURL = ".change.gameprofile.astride.de"

listen<PlayerLoginEvent>(plugin) { event ->
thread {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ subprojects {
apply plugin: 'maven'

group = "net.darkdevelopers.darkbedrock"
version = "4.0.4"
version = "4.0.5"

libsDirName = "libraries"

Expand Down

0 comments on commit 163de23

Please sign in to comment.