OSPL20 will be replaced with MPL2.0 after 1st February 2021! Read more here
OSPL18 and OSPL19 will be replaced with MIT after 1st February2021! Read more here

Verified Commit 21e6f307 authored by AtjonTV's avatar AtjonTV

Release 3.1.1

* Fix broken UserAPI.getAll()
Signed-off-by: AtjonTV's avatarAtjonTV <thomas.obernosterer@atvg-studios.com>
parent 20ba43db
......@@ -12,7 +12,7 @@ plugins {
}
group 'com.atvgstudios'
version '3.1.0'
version '3.1.1'
repositories {
mavenCentral()
......
......@@ -2,6 +2,8 @@ package com.atvgstudios.aaab.api
import com.github.kittinunf.fuel.Fuel
import com.github.kittinunf.fuel.gson.responseObject
import com.google.gson.reflect.TypeToken
import klib.kLibInf
object UserAPI {
fun isBanned(uuid: String): Boolean {
......@@ -15,10 +17,12 @@ object UserAPI {
fun getAll(): List<Profile> {
val f = Fuel.get("https://aaab-online.xyz/a")
.responseObject<ProfileResponse>()
.responseString()
val (res, _) = f.third
return res!!.profiles
val listOfProfiles = object : TypeToken<List<Profile>>() {}.type
return kLibInf.jsonHandler.toObject(res!!, listOfProfiles) as List<Profile>
}
}
\ No newline at end of file
......@@ -2,5 +2,5 @@ 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.1.0
version: 3.1.1
website: https://aaab-online.xyz
\ No newline at end of file
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