public static class VersionFetcher.DummyVersionFetcher extends Object implements VersionFetcher
VersionFetcher.DummyVersionFetcher
Constructor and Description |
---|
DummyVersionFetcher() |
Modifier and Type | Method and Description |
---|---|
long |
getCacheTime()
Amount of time to cache results for in milliseconds
|
@NotNull net.kyori.adventure.text.Component |
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 net.kyori.adventure.text.Component 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 © 2021. All rights reserved.