Verified Commit ce7ab354 authored by AtjonTV's avatar AtjonTV

Hotfix 3.6.3

parent 13f1ecc9
Pipeline #2266 canceled with stages
......@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Security
## [3.6.3] - 16.06.2019
### Added
- Support for random multi-remote connections
- Adding in our Proxy 1 as possible Remote
## [3.6.2] - 09.06.2019
### Fixed
......
......@@ -13,7 +13,7 @@ plugins {
}
group 'com.atvgstudios'
version '3.6.2'
version '3.6.3'
repositories {
mavenCentral()
......
package com.atvgstudios.aaab
import com.atvgstudios.aaab.api.UserAPI
import com.atvgstudios.aaab.api.RemoteManage
import klib.objects.Konfig
import java.io.File
......@@ -16,7 +16,7 @@ object Config {
}
if ("remote" in configs) {
UserAPI.remote = configs["remote"] as String
RemoteManage.customRemote = configs["remote"] as String
}
if ("refresh_limit" in configs) {
......
......@@ -14,7 +14,7 @@ import java.util.TimerTask
class Plugin : JavaPlugin() {
companion object {
val version = SemVer(3, 6, 2)
val version = SemVer(3, 6, 3)
const val prefix = "AAAB-v3 »"
}
......
......@@ -3,4 +3,6 @@ package com.atvgstudios.aaab.api
class Profile(
val id: String,
val name: String
)
\ No newline at end of file
) {
override fun toString() = "{\"id\":\"$id\",\"name\":\"$name\"}"
}
\ No newline at end of file
package com.atvgstudios.aaab.api
import com.github.kittinunf.fuel.Fuel
object RemoteManage {
private val remoteList = listOf("https://aaab-online.xyz", "https://p1.aaab-online.xyz")
var customRemote = ""
fun getWorkingRemote(): String {
if (customRemote.isNotEmpty()) return customRemote
for (remote in remoteList.shuffled()) {
val connection = Fuel.get("$remote/s").responseString()
if (connection.second.statusCode == 200) {
return remote
}
}
return customRemote
}
}
\ No newline at end of file
......@@ -9,7 +9,8 @@ import com.google.gson.reflect.TypeToken
import klib.kLibInf
object UserAPI {
var remote = "https://aaab-online.xyz"
val remote: String
get() = RemoteManage.getWorkingRemote()
fun isBanned(uuid: String): Boolean {
val f = Fuel.get("$remote/i/$uuid")
......
......@@ -2,7 +2,7 @@ main: com.atvgstudios.aaab.Plugin
name: AAAB-v3
description: This is the third generation of AAAB that uses a completly new online API and is more performant.
author: Thomas Obernosterer <thomas.obernosterer@atvg-studios.com>
version: 3.6.2
version: 3.6.3
website: https://aaab-online.xyz
commands:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment