Interface VersionFetcher

All Known Implementing Classes:

public interface VersionFetcher
  • Method Details

    • getCacheTime

      long getCacheTime()
      Amount of time to cache results for in milliseconds

      Negative values will never cache.

      cache time
    • getVersionMessage

      @NotNull @NotNull Component getVersionMessage(@NotNull @NotNull String serverVersion)
      Gets the version message to cache and show to command senders.

      NOTE: This is run in a new thread separate from that of the command processing thread

      serverVersion - the current version of the server (will match Bukkit.getVersion())
      the message to show when requesting a version
    • distance

      default int distance()