SkillAgentSearch skills...

SpigetDownloader

No description available

Install / Use

/learn @InventivetalentDev/SpigetDownloader
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Spiget Downloader

This is standalone program / API to downlod resource files from SpigotMC.org.

Standalone usage (command line)

This downloads version 4.2.0 of ProtocolLib and saves it as ProtocolLib.jar

java -jar spiget-downloader.jar --url https://www.spigotmc.org/resources/protocollib.1997/download?version=131115 --file ProtocolLib.jar

API usage

SpigetDownload download = new SpigetDownloader().download("https://www.spigotmc.org/resources/protocollib.1997/download?version=13111");
ReadableByteChannel channel = Channels.newChannel(download.getInputStream());
try (FileOutputStream out = new FileOutputStream(file)) {
    out.getChannel().transferFrom(channel, 0, Long.MAX_VALUE);
}
View on GitHub
GitHub Stars4
CategoryDevelopment
Updated4y ago
Forks0

Languages

Java

Security Score

65/100

Audited on Jun 11, 2021

No findings