Class GS4QueryEvent.QueryResponse

java.lang.Object
com.destroystokyo.paper.event.server.GS4QueryEvent.QueryResponse
Enclosing class:
GS4QueryEvent

public static final class GS4QueryEvent.QueryResponse extends Object
  • Method Details

    • getMotd

      public String getMotd()
      Get motd which will be used to reply to the query. By default, it is Server.getMotd().
      Returns:
      motd
    • getGameVersion

      public String getGameVersion()
      Get game version which will be used to reply to the query. By default, supported Minecraft versions range is sent.
      Returns:
      game version
    • getMap

      public String getMap()
      Get map name which will be used to reply to the query. By default world is sent.
      Returns:
      map name
    • getCurrentPlayers

      public int getCurrentPlayers()
      Get current online player count which will be used to reply to the query.
      Returns:
      online player count
    • getMaxPlayers

      public int getMaxPlayers()
      Get max player count which will be used to reply to the query.
      Returns:
      max player count
    • getHostname

      public String getHostname()
      Get server (public facing) hostname.
      Returns:
      server hostname
    • getPort

      public int getPort()
      Get server (public facing) port.
      Returns:
      server port
    • getPlayers

      public Collection<String> getPlayers()
      Get collection of players which will be used to reply to the query.
      Returns:
      collection of players
    • getServerVersion

      public String getServerVersion()
      Get server software (name and version) which will be used to reply to the query.
      Returns:
      server software
    • getPlugins

      Get list of plugins which will be used to reply to the query.
      Returns:
      collection of plugins
    • toBuilder

      Creates a new GS4QueryEvent.QueryResponse.Builder instance from data represented by this response.
      Returns:
      GS4QueryEvent.QueryResponse builder
    • builder

      public static GS4QueryEvent.QueryResponse.Builder builder()
      Creates a new GS4QueryEvent.QueryResponse.Builder instance.
      Returns:
      GS4QueryEvent.QueryResponse builder