public interface VersionFetcher
Modifier and Type | Interface and Description |
---|---|
static class |
VersionFetcher.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.
|
long getCacheTime()
Negative values will never cache.
@NotNull @NotNull net.kyori.adventure.text.Component getVersionMessage(@NotNull @NotNull String serverVersion)
NOTE: This is run in a new thread separate from that of the command processing thread
serverVersion
- the current version of the server (will match Bukkit.getVersion()
)Copyright © 2021. All rights reserved.