Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
Multiple dev login cache file
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna5ama committed Sep 17, 2023
1 parent 46e02cb commit 55fa117
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/dev/luna5ama/trollhack/util/alting/MSA.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.google.gson.GsonBuilder
import com.google.gson.JsonObject
import com.google.gson.JsonParser
import com.mojang.util.UUIDTypeAdapter
import dev.luna5ama.trollhack.TrollHackMod
import dev.luna5ama.trollhack.util.readText
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
Expand Down Expand Up @@ -39,7 +40,7 @@ class MSA {

private val urlRegex = "<a href=\"(.*?)\">.*?</a>".toRegex()
private val tagRegex = "<([A-Za-z]*?).*?>(.*?)</\\1>".toRegex()
private val tokenFile = File("DevLoginCache.json")
private val tokenFile = File(System.getenv("MSA_TOKEN_FILE") ?: "${TrollHackMod.DIRECTORY}/dev_login_token.json")

private var proxy = Proxy.NO_PROXY
private var noDialog = false
Expand Down

0 comments on commit 55fa117

Please sign in to comment.