Interface QueryServerEvent.Full

All Superinterfaces:
Event, QueryServerEvent, QueryServerEvent.Basic
Enclosing interface:
QueryServerEvent

public static interface QueryServerEvent.Full extends QueryServerEvent.Basic
  • Method Details

    • gameId

      String gameId()
      Gets the GameId to respond with.

      This is currently hardcoded to MINECRAFT.

      Returns:
      The GameId to respond with.
    • version

      String version()
      Gets the version to respond with.

      By default, this is the server's Minecraft version (e.g 1.8.1).

      Returns:
      The version to respond with
    • setVersion

      void setVersion(String version)
      Sets the version to respond with.

      If setting the string causes the message to go over the maximum size, the message will be automatically truncated.

      Parameters:
      version - The version to respond with
    • plugins

      String plugins()
      Gets the list of plugins to respond with.
      Returns:
      The list of plugins to respond with
    • setPlugins

      void setPlugins(String plugins)
      Sets the list of plugins to respond with.

      If setting the string causes the message to go over the maximum size, the message will be automatically truncated.

      Parameters:
      plugins - The list of plugins to respond with
    • customValuesMap

      Map<String,String> customValuesMap()
      Gets the map of custom keys and values to respond with.

      If settings any of the keys or values causes the message to go over the maximum size, the message will be automatically truncated.

      Returns:
      The map of custom keys and values to respond with
    • players

      List<String> players()
      Gets the list of player names to respond with.
      Returns:
      The list of player names to respond with