inventivetalentdev / spiget-update Goto Github PK
View Code? Open in Web Editor NEWSpigot & Bungeecord updater API
Home Page: https://spiget.org
License: MIT License
Spigot & Bungeecord updater API
Home Page: https://spiget.org
License: MIT License
This prevents plugins from importing and using both.
SpigetUpdate found an update. After calling the spigetUpdate.downloadUpdate() method I've got this error. The link to the update is: https://spigotmc.org/resources/kitpvp-ffa-1vs1.1583/download?version=455960.
java.lang.RuntimeException: Download returned status #302 at org.inventivetalent.update.spiget.download.UpdateDownloader.download(UpdateDownloader.java:64) ~[?:?] at org.inventivetalent.update.spiget.download.UpdateDownloader.lambda$downloadAsync$0(UpdateDownloader.java:48) ~[?:?] at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:82) [spigot-1.19-R0.1-SNAPSHOT.jar:3523-Spigot-1dffefb-effea36] at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) [spigot-1.19-R0.1-SNAPSHOT.jar:3523-Spigot-1dffefb-effea36] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.lang.Thread.run(Thread.java:833) [?:?]
Hello,
I have a small problem with the updater :
java.io.FileNotFoundException: http://api.spiget.org/v2/resources/38865?ut=1496861000391
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) ~[?:1.8.0_131]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[?:1.8.0_131]
at be.flynrod.featherspawn.utils.Updater$1.run(Updater.java:63) [FeatherSpawn.jar:?]
at be.flynrod.featherspawn.utils.CheckUpdate$1.dispatch(CheckUpdate.java:13) [FeatherSpawn.jar:?]
at be.flynrod.featherspawn.utils.Updater.checkForUpdate(Updater.java:57) [FeatherSpawn.jar:?]
at be.flynrod.featherspawn.utils.CheckUpdate.check(CheckUpdate.java:16) [FeatherSpawn.jar:?]
at be.flynrod.featherspawn.Manager.initialize(Manager.java:43) [FeatherSpawn.jar:?]
at be.flynrod.featherspawn.FeatherSpawn.onEnable(FeatherSpawn.java:68) [FeatherSpawn.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) [spigot.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [spigot.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [spigot.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) [spigot.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) [spigot.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) [spigot.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) [spigot.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [spigot.jar:git-Spigot-21fe707-e1ebe52]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
Screenshot: https://image.prntscr.com/image/a90a6ebb3d314e08804cb5bbbd67ff9f.png
I've been using the SpigotUpdater1.0..1.jar file for all my worlds and it works when I type in /version on each of the worlds to check for the latest build. However, when I try to use the bungee-1.3.0.jar in the BungeeCord server plugin, it fails to startup. The same is true for bukkit-1.3.0.jar file.
My assumption since it isn't spelled out here, is the bukkit-1.3.0.jar goes in the world\plugins folder and the bungee-1.3.0.jar goes in the bungeecord server plugins folder. The only problem with both is there is no plugin.yml file included like the SpigotUpdater.jar file has, so how is this used?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
Bukkit/pom.xml
org.bukkit:bukkit 1.9-R0.1-SNAPSHOT
Bungee/pom.xml
net.md-5:bungeecord-api 1.16-R0.4
Core/pom.xml
com.google.code.gson:gson 2.9.0
junit:junit 4.13.2
pom.xml
org.inventivetalent.spiget-update:core 1.4.6-SNAPSHOT
org.inventivetalent.spiget-update:core 1.4.6-SNAPSHOT
org.apache.maven.plugins:maven-compiler-plugin 3.3
org.apache.maven.plugins:maven-shade-plugin 3.2.4
Describe the bug
I tried to use PacketListenerAPI v3.9.5-SNAPSHOT
as a dependency in my project. But, there was no jar in the Jitpack sadly due to an error in this project.
To Reproduce
Steps to reproduce the behavior:
mvn clean install -DskipTests
api
fails to build due to spiget-update
not having a jar in the artifacts.Expected behavior
Including this dependency with a jar in the artifacts.
Additional context
[ERROR] Failed to execute goal on project api: Could not resolve dependencies for project org.inventivetalent.packetlistenerapi:api:jar:3.9.5-SNAPSHOT: Failed to collect dependencies at org.inventivetalent.spiget-update:bukkit:jar:1.4.2-SNAPSHOT: Failed to read artifact descriptor for org.inventivetalent.spiget-update:bukkit:jar:1.4.2-SNAPSHOT: Could not transfer artifact org.inventivetalent.spiget-update:parent:pom:parent from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [md_5-repo (http://repo.md-5.net/content/repositories/public/, default, releases+snapshots)] -> [Help 1]
I think releasing a new version of this library would fix the issue of building PacketListenerAPI by Jitpack ๐ค
Im using Spiget Update in my plugins, but downloading new versions using downloadUpdate() seems to be broken. I have updated to your 1.4.5-SNAPSHOT but it still doesnt work.
Each time I call spiget.downloadUpdate() it fails with error 503 no service. hasDirectDownload is true although the link I get actually not is a direct download link ?
downloadUrl = https://spigotmc.org/resources/mobhunting.3582/download?version=449285
I have tried to make my own downloader but has not been able to solve the problem. I get either error 302 or 503 no matter how I try to download. I would be nice if you could take a look at this problem?
The downloaded jar cannot be loaded by bukkit, is there any way to fix this?
Here is a stacktrace of the exception thrown at runtime
[12:07:05 ERROR]: Could not load 'plugins\CombatActionBar.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.jaime29010.combatactionbar.Main'
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:66) ~[spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugins(CraftServer.java:297) [spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:202) [spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:540) [spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_101]
Caused by: java.lang.ClassNotFoundException: me.jaime29010.combatactionbar.Main
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_101]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_101]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_101]
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_101]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_101]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_101]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_101]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_101]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
... 7 more
Caused by: java.io.IOException: invalid header field name: Manifest*Version
at java.util.jar.Attributes.read(Unknown Source) ~[?:1.8.0_101]
at java.util.jar.Manifest.read(Unknown Source) ~[?:1.8.0_101]
at java.util.jar.Manifest.<init>(Unknown Source) ~[?:1.8.0_101]
at java.util.jar.JarFile.getManifestFromReference(Unknown Source) ~[?:1.8.0_101]
at java.util.jar.JarFile.getManifest(Unknown Source) ~[?:1.8.0_101]
at sun.misc.URLClassPath$JarLoader$2.getManifest(Unknown Source) ~[?:1.8.0_101]
at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.8.0_101]
at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.8.0_101]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_101]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_101]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_101]
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_101]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_101]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_101]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_101]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_101]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot_server.jar:git-Spigot-cf6dea3-ca1bb1c]
... 7 more
Hi there, can you add a check if the update has already been downloaded before, and if it has already been downloaded, that it doesn't download it again?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.