VersionFetcher
public 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
|
@NotNull String |
getVersionMessage(@NotNull String serverVersion) |
Gets the version message to cache and show to command senders.
|
public long getCacheTime()
VersionFetcher
Negative values will never cache.
getCacheTime
in interface VersionFetcher
@NotNull public @NotNull String getVersionMessage(@NotNull @NotNull String serverVersion)
VersionFetcher
NOTE: This is run in a new thread separate from that of the command processing thread
getVersionMessage
in interface VersionFetcher
serverVersion
- the current version of the server (will match Bukkit.getVersion()
)Copyright © 2020. All rights reserved.