VersionFetcherpublic static class VersionFetcher.DummyVersionFetcher extends Object implements VersionFetcher
VersionFetcher.DummyVersionFetcher| Constructor | Description |
|---|---|
DummyVersionFetcher() |
| Modifier and Type | Method | Description |
|---|---|---|
long |
getCacheTime() |
Amount of time to cache results for in milliseconds
|
String |
getVersionMessage(String serverVersion) |
Gets the version message to cache and show to command senders.
|
public long getCacheTime()
VersionFetcherNegative values will never cache.
getCacheTime in interface VersionFetcher@NotNull public String getVersionMessage(@NotNull String serverVersion)
VersionFetcherNOTE: This is run in a new thread separate from that of the command processing thread
getVersionMessage in interface VersionFetcherserverVersion - the current version of the server (will match Bukkit.getVersion())Copyright © 2019. All rights reserved.