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 bb32a3f0 authored by AtjonTV's avatar AtjonTV

Release 3.1.2

* Added status infos
* Fixed issue with CosnixDB being read-only
Signed-off-by: AtjonTV's avatarAtjonTV <thomas.obernosterer@atvg-studios.com>
parent 81e8b078
......@@ -12,7 +12,7 @@ plugins {
}
group 'com.atvgstudios'
version '3.1.1'
version '3.1.2'
repositories {
mavenCentral()
......
......@@ -23,7 +23,7 @@ class Listener : Listener {
Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "ban ${e.player.name} §4Usage of known Alt-Account from MC-Leaks.\nBanned using AAAB v3 (https://aaab-online.xyz)")
}
if(!cosnixDB && CacheDB.PROFILES_KEY in cosnixDB) {
if(CacheDB.PROFILES_KEY in cosnixDB) {
val allProfiles = cosnixDB[CacheDB.PROFILES_KEY] as List<Profile>
val name = allProfiles.find { it.id == uuid }
......@@ -44,7 +44,8 @@ class Listener : Listener {
if(joinCount == refreshCount) {
joinCount = 0
if(!cosnixDB && CacheDB.PROFILES_KEY in cosnixDB) {
if(CacheDB.PROFILES_KEY in cosnixDB) {
cosnixDB % CacheDB.PROFILES_KEY
cosnixDB[CacheDB.PROFILES_KEY] = UserAPI.getAll()
}
}
......
......@@ -10,6 +10,8 @@ object UserAPI {
val f = Fuel.get("https://aaab-online.xyz/i/$uuid")
.responseObject<UserResponse>()
println("[AAAB-v3] Checking: https://aaab-online.xyz/i/$uuid")
val (res, _) = f.third
return res?.ok ?: false
......@@ -19,6 +21,8 @@ object UserAPI {
val f = Fuel.get("https://aaab-online.xyz/a")
.responseString()
println("[AAAB-v3] Refreshing: https://aaab-online.xyz/a")
val (res, _) = f.third
val listOfProfiles = object : TypeToken<List<Profile>>() {}.type
......
......@@ -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.1
version: 3.1.2
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