Package net.lucypoulton.squirtgun.update
Class SpigotUpdateChecker
java.lang.Object
net.lucypoulton.squirtgun.update.UpdateChecker
net.lucypoulton.squirtgun.update.VersionStringUpdateChecker
net.lucypoulton.squirtgun.update.SpigotUpdateChecker
Update checking mechanism for Spigot plugins.
-
Constructor Summary
ConstructorsConstructorDescriptionSpigotUpdateChecker(SquirtgunPlugin<?> plugin, int pluginId, net.kyori.adventure.text.Component updateMessage, String listenerPermission) Creates a new update checker, and schedule update checking every 3 hours. -
Method Summary
Methods inherited from class net.lucypoulton.squirtgun.update.VersionStringUpdateChecker
checkDataForUpdateMethods inherited from class net.lucypoulton.squirtgun.update.UpdateChecker
checkDataForUpdate, checkForUpdate, getListenerPermission, getPlugin, getUpdateMessage
-
Constructor Details
-
SpigotUpdateChecker
public SpigotUpdateChecker(SquirtgunPlugin<?> plugin, int pluginId, net.kyori.adventure.text.Component updateMessage, String listenerPermission) Creates a new update checker, and schedule update checking every 3 hours.- Parameters:
plugin- the plugin to check againstpluginId- the numeric spigot resource idupdateMessage- the message to show in console and to players with the listener permission on joinlistenerPermission- if a player holds this permission and an update is available, they will be sent the update message in chat
-