Got initial sponge powered loading working, Im not sure the consequences of it though

This commit is contained in:
2025-05-27 19:39:27 -04:00
parent 3f6bb4a0e6
commit 7247341693
9 changed files with 115 additions and 47 deletions
@@ -47,6 +47,7 @@ import java.util.List;
@Relocate(from = "com.my\\" + "sql.jdbc", to = "dev.brighten.antivpn.shaded.com.mysql.jdbc")
}
)
@MavenLibrary(groupId = "com.github.ben-manes.caffeine", artifactId = "caffeine", version = "3.1.8")
public class AntiVPN {
private static AntiVPN INSTANCE;
@@ -73,8 +73,8 @@ public class MiscUtils {
JSONObject object = JsonReader
.readJsonFromUrl("https://funkemunky.cc/mojang/uuid?name=" + playername);
if(object.has("id")) {
return formatFromMojangUUID(object.getString("uuid"));
if(object.has("uuid")) {
return UUID.fromString(object.getString("uuid"));
}
} catch (IOException | JSONException e) {
AntiVPN.getInstance().getExecutor().logException("Error while looking up UUID for " + playername, e);