Update TribufuServer.java

This commit is contained in:
Guilherme Werner 2024-03-06 19:29:48 -03:00
parent 475d1c5dc6
commit 1839b59589

View file

@ -2,6 +2,9 @@
package com.tribufu;
import com.tribufu.types.servers.Server;
import java.util.concurrent.CompletableFuture;
/**
* Tribufu Server
*
@ -67,4 +70,11 @@ public class TribufuServer extends TribufuClient {
public String getServerId() {
return this.serverId;
}
/**
* Get information about the current server.
*/
public CompletableFuture<Server> getServerInfo() {
return this.getServerById(this.serverId);
}
}