Interface ServerManager
public interface ServerManager
-
Method Summary
Modifier and TypeMethodDescriptiondefault SystemOS
getOS()
Get the operating system of the local machinedefault @Nullable Object
getRegistryCacheKey
(User user, ClientVersion version) Gets a platform-specific network-synchronized-registries cache key.Get the server version.
-
Method Details
-
getVersion
ServerVersion getVersion()Get the server version.- Returns:
- Get Server Version
-
getOS
Get the operating system of the local machine- Returns:
- Get Operating System
-
getRegistryCacheKey
Gets a platform-specific network-synchronized-registries cache key.This tells packetevents, if a registry should be cached or read again. On backend servers with global registries, this may be a constant value. On proxy servers with per-server registries, this may be a value which depends on the current server the
User
is on.- Parameters:
user
- theUser
for which the registry gets readversion
- the version the packet is for- Returns:
- some value or null for no caching at all
-