diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 11f3083..c1bb20e 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties index c392d38..f023418 100644 --- a/.gradle/buildOutputCleanup/cache.properties +++ b/.gradle/buildOutputCleanup/cache.properties @@ -1,2 +1,2 @@ -#Sun Jul 02 14:20:27 CEST 2023 -gradle.version=8.2 +#Thu Apr 04 18:48:28 CEST 2024 +gradle.version=8.7 diff --git a/API/json.jar b/API/json.jar deleted file mode 100644 index 6583ea5..0000000 Binary files a/API/json.jar and /dev/null differ diff --git a/build.gradle b/build.gradle index 8ce1937..95da785 100644 --- a/build.gradle +++ b/build.gradle @@ -16,9 +16,8 @@ repositories { } dependencies { - compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT") + compileOnly("org.spigotmc:spigot-api:1.20.4-R0.1-SNAPSHOT") implementation 'org.jetbrains:annotations:23.0.0' - implementation files('API/json.jar') } java { @@ -29,7 +28,6 @@ java { jar { duplicatesStrategy = DuplicatesStrategy.INCLUDE - from(zipTree("API/json.jar")) from { subprojects.collect { it.sourceSets.main.output } } diff --git a/src/main/java/org/scorpion/api/HoneyAPI.java b/src/main/java/org/scorpion/api/HoneyAPI.java index c5ee268..f38de47 100644 --- a/src/main/java/org/scorpion/api/HoneyAPI.java +++ b/src/main/java/org/scorpion/api/HoneyAPI.java @@ -4,10 +4,7 @@ import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.entity.Player; -import org.jetbrains.annotations.NotNull; -import org.json.JSONObject; import org.scorpion.user.HoneyUser; -import org.scorpion.util.Time; import org.scorpion.util.file.FileManager; import org.scorpion.util.user.User; @@ -216,27 +213,12 @@ public static void sendTPA(Player sender, Player target) { target.sendMessage(getPrefix() + "§7You have received a teleport request from §c" + sender.getName() + "§7!"); } - private static Object getWebData(String u, String data) { - try { - URL url = new URL(u); - BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); - - String line = reader.readLine(); - JSONObject json = new JSONObject(line); - return json.getString(data); - } catch (Exception e) { - e.printStackTrace(); - } - return ""; - } - public static String getPluginVersion() { - return getWebData("https://sunlightscorpion.de/honey.json", "plugin").toString(); + return null; } public static boolean needUpdate(String version) { - String current = getWebData("https://sunlightscorpion.de/honey.json", "plugin").toString(); - return !current.equalsIgnoreCase(version); + return true; } public static boolean isSnapshot(String version) {