Package com.destroystokyo.paper.util
Interface VersionFetcher
- All Known Implementing Classes:
VersionFetcher.DummyVersionFetcher
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionlongAmount of time to cache results for in millisecondsGets 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 millisecondsNegative 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
-
serverVersionis not required