Interface ServerManager


public interface ServerManager
  • Method Details

    • getVersion

      ServerVersion getVersion()
      Get the server version.
      Returns:
      Get Server Version
    • getOS

      default SystemOS getOS()
      Get the operating system of the local machine
      Returns:
      Get Operating System
    • getRegistryCacheKey

      @Nullable default @Nullable Object getRegistryCacheKey(User user, ClientVersion version)
      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 - the User for which the registry gets read
      version - the version the packet is for
      Returns:
      some value or null for no caching at all