Class UpdateCheckEvent

java.lang.Object
org.bukkit.event.Event
de.jeff_media.updatechecker.UpdateCheckEvent

public class UpdateCheckEvent extends org.bukkit.event.Event
This event is called whenever an update check is finished.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    @Nullable String
    Returns the latest version string found by the UpdateChecker, or null if all previous checks have failed.
    @Nullable org.bukkit.command.CommandSender[]
    Gets an array of all CommandSenders who have requested this update check.
    Gets the result, i.e. whether a new version is available or not.
    Checks whether the update checking attempt was successful or failed.
    @NotNull String
    Gets the version string of the currently used plugin version.

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getLatestVersion

      @Nullable public @Nullable String getLatestVersion()
      Returns the latest version string found by the UpdateChecker, or null if all previous checks have failed.
      Returns:
      Latest version string found by the UpdateChecker, or null if all previous checks have failed
    • getRequesters

      @Nullable public @Nullable org.bukkit.command.CommandSender[] getRequesters()
      Gets an array of all CommandSenders who have requested this update check. Normally this will either be the ConsoleCommandSender or a player.
      Returns:
      Array of all CommandSenders who have requested this update check
    • getResult

      public UpdateCheckResult getResult()
      Gets the result, i.e. whether a new version is available or not.
      Returns:
      UpdateCheckResult of this update check
    • getSuccess

      public UpdateCheckSuccess getSuccess()
      Checks whether the update checking attempt was successful or failed.
      Returns:
      UpdateCheckSuccess of this update check
    • getUsedVersion

      @NotNull public @NotNull String getUsedVersion()
      Gets the version string of the currently used plugin version.
      Returns:
      Version string of the currently used plugin version