de.eldoria.eldoutilities.updater.spigotupdater.SpigotUpdateData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of updater Show documentation
Show all versions of updater Show documentation
Utilitites for plugin auto updating and update checks
/*
* SPDX-License-Identifier: LGPL-3.0-or-later
*
* Copyright (C) EldoriaRPG Team and Contributor
*/
package de.eldoria.eldoutilities.updater.spigotupdater;
import de.eldoria.eldoutilities.updater.DefaultUpdateResponse;
import de.eldoria.eldoutilities.updater.UpdateData;
import org.bukkit.plugin.Plugin;
/**
* Updater implementation for spigot update check.
*
* @since 1.0.0
*/
public class SpigotUpdateData extends UpdateData {
private final int spigotId;
/**
* Creates a new Spigot Update Data.
*
* @param plugin plugin to update
* @param notifyPermission permission to receive notification
* @param notifyUpdate set to true to notify admins on login
* @param spigotId spigot id of the plugin
*/
SpigotUpdateData(Plugin plugin, String notifyPermission, boolean notifyUpdate, int spigotId, String updateUrl, String updateMessage) {
super(plugin, notifyPermission, notifyUpdate, false, updateUrl, updateMessage);
this.spigotId = spigotId;
}
public static SpigotUpdateDataBuilder builder(Plugin plugin, int spigotId) {
return new SpigotUpdateDataBuilder(plugin, spigotId);
}
public int getSpigotId() {
return spigotId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy