Interface VersionFetcher
public interface VersionFetcher
Provides the message shown by the
/version command about whether the server is up to date.-
Method Summary
Modifier and TypeMethodDescriptiondefault intdistance()longAmount of time to cache results for in milliseconds.Gets the version message to cache and show to command senders.default ComponentgetVersionMessage(String serverVersion) Deprecated.
-
Method Details
-
getCacheTime
long getCacheTime()Amount of time to cache results for in milliseconds.Negative values will never cache.
- Returns:
- cache time
-
getVersionMessage
Component getVersionMessage()Gets the version message to cache and show to command senders.- Returns:
- the message to show when requesting a version
- API Note:
- This method may involve a web request which will block the executing thread
-
getVersionMessage
Deprecated.serverVersionis not requiredGets the version message to cache and show to command senders.- Parameters:
serverVersion- the current version of the server (will matchBukkit.getVersion())- Returns:
- the message to show when requesting a version
- See Also:
- API Note:
- This method may involve a web request which will block the current thread
-
distance
default int distance()
-
serverVersionis not required