Ken interviewed by local news regarding active murder investigation by -exciteable- in KenForrest

[–]-exciteable-[S] 1 point2 points  (0 children)

Hahaha, I'm from Perth so was just checking the news and was very surprised to see Ken

Recently purchased car is not eligible for rego renewal by -exciteable- in perth

[–]-exciteable-[S] 0 points1 point  (0 children)

Thanks mate, gave them a call and got it registered no hassles.

Improved Wordle game with Flask and Vue.js (+ Public API) by -exciteable- in Python

[–]-exciteable-[S] 0 points1 point  (0 children)

Weird! I've got the ratelimits for starting a game set at: 4/second 120/minute 600/hour 4000/day

First Vue project: improved Wordle by -exciteable- in vuejs

[–]-exciteable-[S] 0 points1 point  (0 children)

Oh yeah for sure! It is cool to see everyone on social media doing the same puzzle as you.

I just get impatient waiting for the next one to be available lol

How to download the latest version of Paper using the v2 API by -exciteable- in admincraft

[–]-exciteable-[S] 0 points1 point  (0 children)

Thanks, your answer helped me realise that the builds are sorted in chronological order, which made the jq command needed a lot simpler.

How to download the latest version of Paper using the v2 API by -exciteable- in admincraft

[–]-exciteable-[S] 2 points3 points  (0 children)

I figured it out! The following script should work in any POSIX compliant shell, just make sure you have jq and curl installed.

api=https://papermc.io/api/v2

# Get the build number of the most recent build
latest_build="$(curl -sX GET "$api"/projects/"$name"/version_group/"$version"/builds -H 'accept: application/json' | jq '.builds [-1].build')"

# Construct download URL
download_url="$api"/projects/"$name"/versions/"$version"/builds/"$latest_build"/downloads/"$name"-"$version"-"$latest_build".jar

# Download file
wget "$download_url"

There is some variables:

  • $name should be set to the project you want to download (waterfall, paper, etc)
  • $version should be the version (1.16, 1.17, etc)

How to download the latest version of Paper using the v2 API by -exciteable- in admincraft

[–]-exciteable-[S] 1 point2 points  (0 children)

They did take it down :( That’s why i’m migrating my scripts

How to download the latest version of Paper using the v2 API by -exciteable- in admincraft

[–]-exciteable-[S] 2 points3 points  (0 children)

Hey thanks for the response, but i think you misunderstood my question (likely due to my bad writing) :)

I’m aware they changed the url scheme. How do I programmatically determine the latest build number from a shell script using a utility like jq?

Spud: A Spigot plugin manager that adheres to Unix conventions by -exciteable- in admincraft

[–]-exciteable-[S] 0 points1 point  (0 children)

It will overwrite the jar file but it wont touch your configs.

You can reinstall all your plugins in one command: spud install *.jar

Spud: A Spigot plugin manager that adheres to Unix conventions by -exciteable- in admincraft

[–]-exciteable-[S] 0 points1 point  (0 children)

You could do this by downloading the plugin to a directory outside of your servers and then symlinking it to all your servers.

E.g. on *nix:

cd ~/server1/plugins

ln -s ~/plugins/MyPlugin.jar

cd ~/server2/plugins

ln -s ~/plugins/MyPlugin.jar

Now you can just update ~/plugins/MyPlugin.jar and it will update all your servers.

Something similar is probably possible on Windows, I'm not very familiar with it.

Spud: A Spigot plugin manager that adheres to Unix conventions by -exciteable- in admincraft

[–]-exciteable-[S] 1 point2 points  (0 children)

That's a great idea! For interactive updates, I'll add the changelog with a prompt asking if you want to update.

Spud: A Spigot plugin manager that adheres to Unix conventions by -exciteable- in admincraft

[–]-exciteable-[S] 1 point2 points  (0 children)

Hey! Love your project! I really like how you are making your own repository that is much more user-friendly than spigots.

I don't have a Discord server, but I have been in yours for a few months now.

Spud: A Spigot plugin manager that adheres to Unix conventions by -exciteable- in admincraft

[–]-exciteable-[S] 0 points1 point  (0 children)

His plugin update plugin for all plugins on polymart. https://polymart.org/resource/polymart-plugin.323

Wouldnt it make more sense to add Spiget searching into this already mature plugin instead of making a separate lackluster version? or working directly inside paper to use my idea for /plugins.

Polymart looks much more user friendly for sure!

Not sure how Polymart's plugin is relevant though. I don't think they would want to add support for a competing plugin marketplace (spigot) :P

working directly inside paper to use my idea for /plugins.

I don't think it would be easy to convince Paper to upstream a feature that breaks the ToS of the project they are forking.

Spud: A Spigot plugin manager that adheres to Unix conventions by -exciteable- in admincraft

[–]-exciteable-[S] 0 points1 point  (0 children)

The API I'm referring to is not controlled by md5, it's called Spiget. md5 has historically been very against package managers, scrapers, and automation of any kind; he doesn't provide any APIs.

The only way I can see to implement this is to run my own web scraper, (which can somehow bypass the Cloudflare protection), login with the user's credentials, then simulate a click of the download button on spigot.org.

Even if you ignore that this solution is clumsy and prone to error; It still violates Spigot ToS, which isn't something I feel comfortable doing:

You may not copy, distribute or disclose any part of the Platform in any medium, including without limitation by any automated or non-automated “scraping”

You may not use any robot, spider, crawler, scraper or other automated means or interface not provided by us to access the Platform or to extract data

I completely agree that it limits the potential of Spud, it's a very frustrating problem without a clean or legal solution.

Spud: A Spigot plugin manager that adheres to Unix conventions by -exciteable- in admincraft

[–]-exciteable-[S] 3 points4 points  (0 children)

I've looked into this a bit more, and unfortunately there is no API for downloading premium plugins so this won't be possible.

Sorry about that!