diff --git a/Common/src/main/java/dev/brighten/antivpn/web/FunkemunkyAPI.java b/Common/src/main/java/dev/brighten/antivpn/web/FunkemunkyAPI.java index fc35735..7710325 100644 --- a/Common/src/main/java/dev/brighten/antivpn/web/FunkemunkyAPI.java +++ b/Common/src/main/java/dev/brighten/antivpn/web/FunkemunkyAPI.java @@ -12,7 +12,7 @@ public class FunkemunkyAPI { /** * - * Queries https://funkemunky.cc/vpn API and returns information on the IP + * Queries ... API and returns information on the IP * * @param ip String * @param license String @@ -25,7 +25,7 @@ public class FunkemunkyAPI { throws JSONException, IOException { JSONObject result = JsonReader.readJsonFromUrl(String .format("https://funkemunky.cc/vpn?ip=%s&license=%s&cache=%s", - ip, license.length() == 0 ? "none" : license, cachedResults)); + ip, license.isEmpty() ? "none" : license, cachedResults)); return VPNResponse.fromJson(result); } @@ -43,7 +43,7 @@ public class FunkemunkyAPI { } /** - * Queries https://funkemunky.cc/vpn/queryCheck and returns information based on the + * Queries ... and returns information based on the * provided licence input. * * @param license String diff --git a/Common/src/main/java/dev/brighten/antivpn/web/objects/QueryResponse.java b/Common/src/main/java/dev/brighten/antivpn/web/objects/QueryResponse.java index 2b2d6dd..3dc96bb 100644 --- a/Common/src/main/java/dev/brighten/antivpn/web/objects/QueryResponse.java +++ b/Common/src/main/java/dev/brighten/antivpn/web/objects/QueryResponse.java @@ -7,7 +7,7 @@ import lombok.Data; /** - * Used to format the JSON response from https://funkemunky.cc/vpn/queryCheck into an object for project use. + * Used to format the JSON response from ... into an object for project use. */ @Data @Builder(toBuilder = true) @@ -19,18 +19,7 @@ public class QueryResponse { private long queriesMax; /** - * Takes a JSON String and feeds it into {@link QueryResponse#fromJson(JSONObject)} - * - * @param jsonString String (formatted in JSON) - * @return QueryResponse - * @throws JSONException Throws when JSON is not formatted properly. - */ - public static QueryResponse fromJson(String jsonString) throws JSONException { - return fromJson(new JSONObject(jsonString)); - } - - /** - * Formats response from https://funkemunky.cc/vpn/queryCheck into {@link QueryResponse} for project use. + * Formats response from ... into {@link QueryResponse} for project use. * * @param object JSONObject * @return QueryResponse diff --git a/Velocity/pom.xml b/Velocity/pom.xml index facd283..152db18 100644 --- a/Velocity/pom.xml +++ b/Velocity/pom.xml @@ -27,7 +27,7 @@ com.velocitypowered velocity-api - 4.0.0-SNAPSHOT + 3.4.0-SNAPSHOT provided