Package com.destroystokyo.paper.util
Class VersionFetcher.DummyVersionFetcher
java.lang.Object
com.destroystokyo.paper.util.VersionFetcher.DummyVersionFetcher
- All Implemented Interfaces:
- VersionFetcher
- Enclosing interface:
- VersionFetcher
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.destroystokyo.paper.util.VersionFetcherVersionFetcher.DummyVersionFetcher
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongAmount of time to cache results for in millisecondsgetVersionMessage(@NotNull String serverVersion) Gets the version message to cache and show to command senders.
- 
Constructor Details- 
DummyVersionFetcherpublic DummyVersionFetcher()
 
- 
- 
Method Details- 
getCacheTimepublic long getCacheTime()Description copied from interface:VersionFetcherAmount of time to cache results for in millisecondsNegative values will never cache. - Specified by:
- getCacheTimein interface- VersionFetcher
- Returns:
- cache time
 
- 
getVersionMessageDescription copied from interface:VersionFetcherGets 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 - Specified by:
- getVersionMessagein interface- VersionFetcher
- Parameters:
- serverVersion- the current version of the server (will match- Bukkit.getVersion())
- Returns:
- the message to show when requesting a version
 
 
-