Class CCServerInfoRequest
java.lang.Object
de.florianmichael.classic4j.request.classicube.server.CCServerInfoRequest
This class is used to request information about a server from the ClassiCube server list. It is used by
ClassiCubeHandler.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<CCServerList>send(HttpClient client, CCAccount account, List<String> serverHashes) Sends a request to the ClassiCube server list to get information about the given servers.
-
Constructor Details
-
CCServerInfoRequest
public CCServerInfoRequest()
-
-
Method Details
-
send
public static CompletableFuture<CCServerList> send(HttpClient client, CCAccount account, List<String> serverHashes) Sends a request to the ClassiCube server list to get information about the given servers. The response contains information about the server, such as the name, the MOTD, the number of players, etc.- Parameters:
account- The account to use for the request.serverHashes- The hashes of the servers to get information about.- Returns:
- A CompletableFuture containing the response.
-