Package com.destroystokyo.paper.util
Interface VersionFetcher
- All Known Implementing Classes:
 VersionFetcher.DummyVersionFetcher
public interface VersionFetcher
- 
Nested Class Summary
Nested Classes - 
Method Summary
Modifier and TypeMethodDescriptionlongAmount of time to cache results for in millisecondsgetVersionMessage(@NotNull String serverVersion) Gets the version message to cache and show to command senders. 
- 
Method Details
- 
getCacheTime
long getCacheTime()Amount of time to cache results for in millisecondsNegative values will never cache.
- Returns:
 - cache time
 
 - 
getVersionMessage
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
- Parameters:
 serverVersion- the current version of the server (will matchBukkit.getVersion())- Returns:
 - the message to show when requesting a version
 
 
 -