All Projects → InventivetalentDev → Spiget-Update

InventivetalentDev / Spiget-Update

Licence: MIT license
Spigot & Bungeecord updater API

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Spiget-Update

CompactNPCLib
Library to create NPCs
Stars: ✭ 22 (-12%)
Mutual labels:  spigot, javadoc
WildChests
Sell chests, auto crafters, storage units, larger chests and more in one plugin!
Stars: ✭ 20 (-20%)
Mutual labels:  spigot
SquidGame
Minecraft Minigame inspired by the famous and trending Netflix series "Squid Game"
Stars: ✭ 36 (+44%)
Mutual labels:  spigot
ScriptBlockPlus
任意のブロックにスクリプトを追加するプラグインです。
Stars: ✭ 25 (+0%)
Mutual labels:  spigot
vscode-updater
A simple script to automate downloading, installing and restarting Visual Studio Code.
Stars: ✭ 59 (+136%)
Mutual labels:  updater
jd2chm
Create HTML Help project files from existing Javadoc and triggers the HHC compiler to generate a CHM file.
Stars: ✭ 17 (-32%)
Mutual labels:  javadoc
Purpur
Purpur is a drop-in replacement for Paper servers designed for configurability, and new fun and exciting gameplay features.
Stars: ✭ 1,224 (+4796%)
Mutual labels:  spigot
pluGET
📦 Powerful Package manager which updates plugins & server software for minecraft servers
Stars: ✭ 87 (+248%)
Mutual labels:  spigot
MinecraftNetwork
Minecraft server network backend
Stars: ✭ 35 (+40%)
Mutual labels:  spigot
NoSpawnChunks
Helps manage server memory by dynamically unloading chunks
Stars: ✭ 21 (-16%)
Mutual labels:  spigot
Mohist
Minecraft Forge Hybrid server implementing the Spigot/Bukkit API, formerly known as Thermos/Cauldron/MCPC+
Stars: ✭ 861 (+3344%)
Mutual labels:  spigot
KibblePatcher
KibbleLands Spigot patcher
Stars: ✭ 25 (+0%)
Mutual labels:  spigot
DragonTravel
A plugin for the Minecraft-servermods "Bukkit" and "Spigot".
Stars: ✭ 17 (-32%)
Mutual labels:  spigot
MinecraftDeveloperGuide
📝Minecraft developer Chinese guide,我的世界开发者中文指南
Stars: ✭ 1,307 (+5128%)
Mutual labels:  spigot
cylon-deb
TUI menu driven bash shell script to update and maintain a Debian based Linux distro.
Stars: ✭ 23 (-8%)
Mutual labels:  updater
ResourcepacksPlugins
Set resource packs on whole proxy, per server and per world!
Stars: ✭ 47 (+88%)
Mutual labels:  spigot
ReflectionHelper
API for accessing various classes and their members using reflection. (Specifically for Minecraft)
Stars: ✭ 34 (+36%)
Mutual labels:  spigot
PlexServerAutoUpdater
Automatically update Plex when running the Plex service.
Stars: ✭ 94 (+276%)
Mutual labels:  updater
BetterChairs
BetterChairs is a Minecraft plugin, that allows you to sit on chairs.
Stars: ✭ 24 (-4%)
Mutual labels:  spigot
Duels
A duel plugin for minecraft.
Stars: ✭ 66 (+164%)
Mutual labels:  spigot

Build Status GitHub release

Spigot & Bungeecord updater API which uses spiget.org to check for new versions

Usage

Check for new versions

SpigetUpdate updater = new SpigetUpdate(this, 12345);

// This compares versions just by checking if they are equal
// This means that older versions will also be treated as updates
updater.setVersionComparator(VersionComparator.EQUAL);

// This converts a semantic version to an integer and checks if the updated version is greater
updater.setVersionComparator(VersionComparator.SEM_VER);

updater.checkForUpdate(new UpdateCallback() {
	@Override
	public void updateAvailable(String newVersion, String downloadUrl, boolean hasDirectDownload) {
		//// A new version is available
		// newVersion - the latest version
		// downloadUrl - URL to the download
		// hasDirectDownload - whether the update is available for a direct download on spiget.org
	}

	@Override
	public void upToDate() {
		//// Plugin is up-to-date
	}
});

Download updates (Bukkit/Spigot)

final SpigetUpdate updater = new SpigetUpdate(this, 12345);
updater.checkForUpdate(new UpdateCallback() {
	@Override
	public void updateAvailable(String newVersion, String downloadUrl, boolean hasDirectDownload) {
		// First check if there is a direct download available
		// (Either the resources is hosted on spigotmc.org, or Spiget has a cached version to download)
		// external downloads won't work if they are disabled (by default) in spiget.properties
		if (hasDirectDownload) {
			if (updater.downloadUpdate()) {
				// Update downloaded, will be loaded when the server restarts
			} else {
				// Update failed
				getLogger().warning("Update download failed, reason is " + updater.getFailReason());
			}
		}
	}

	@Override
	public void upToDate() {
	}
});

Maven

<repositories>
    <repository>
        <id>inventive-repo</id>
        <url>https://repo.inventivetalent.org/content/groups/public/</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>org.inventivetalent.spiget-update</groupId>
        <artifactId>bukkit|bungee</artifactId>
        <version>VERSION</version>
    </dependency>
</dependencies>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].