TechnicJelle / BlueMapOfflinePlayerMarkers

Minecraft Paper plugin and BlueMap addon that adds markers where players have logged off
Mozilla Public License 2.0
14 stars 8 forks source link

Exception trying to fetch the latest version #43

Closed LTHPKBTE closed 1 month ago

LTHPKBTE commented 2 months ago
[00:10:58 ERROR]: [BlueMap] BlueMapAPI: A BlueMapAPI listener threw an exception (onEnable)!
java.util.concurrent.CompletionException: Exception trying to fetch the latest version
        at BlueMapOfflinePlayerMarkers-2.9.jar/com.technicjelle.UpdateChecker.fetchLatestVersion(UpdateChecker.java:87) ~[BlueMapOfflinePlayerMarkers-2.9.jar:?]
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) ~[?:?]
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[?:?]
Caused by: java.io.IOException: Did not get a redirect
        at BlueMapOfflinePlayerMarkers-2.9.jar/com.technicjelle.UpdateChecker.fetchLatestVersion(UpdateChecker.java:80) ~[BlueMapOfflinePlayerMarkers-2.9.jar:?]
        ... 7 more

In some areas, the network environment may not allow the plug-in to check for updates. Is there any way to disable its update check?

TechnicJelle commented 2 months ago

This is currently not possible. I'm going to close this issue here, and ask you to repost it in here: https://github.com/TechnicJelle/UpdateCheckerJava, so I can keep track of the feature request where it belongs.

TechnicJelle commented 2 months ago

I happened to need this feature during the development of BlueMapSpawnMarker and BlueMapNativeAddonTemplate today, so I updated the Update Checker to now be able to be disabled! I will now have to go through every single of my plugins (that's like 20 about now!) and change the version of the update checker those use. I hope to be able to do that this week...

TechnicJelle commented 1 month ago

Actually, I'll reopen it to serve as a reminder for myself

TechnicJelle commented 1 month ago

Done in 4deaeaf where I updated the Update Checker.

If you want to disable the update checker, you can do so by passing -Dtechnicjelle.updatechecker.disabled as a JVM argument.\ Example: java -Dtechnicjelle.updatechecker.disabled -jar server.jar

TechnicJelle commented 1 month ago

Please let me know if it works, @LTHPKBTE!

LTHPKBTE commented 1 month ago

Please let me know if it works, @LTHPKBTE!

I had to terminate my server due to academic reasons and may not be able to test this any more. Thank you for your work!

-Automatic translation, please ignore grammatical errors.

TechnicJelle commented 1 month ago

Ah. I'm sorry to hear that. You're welcome! :)

And thank you for using my addon :)